MapTilesDownloader icon indicating copy to clipboard operation
MapTilesDownloader copied to clipboard

Only works on Windows

Open Exscotticus opened this issue 4 years ago • 5 comments

Looks like you have some Windows OS specific code...

$ python3 server.py
Starting Server...
Running Server...
Traceback (most recent call last):
  File "server.py", line 167, in <module>
    run()
  File "server.py", line 162, in run
    os.startfile('UI\\index.htm', 'open')
AttributeError: module 'os' has no attribute 'startfile'

Exscotticus avatar Aug 24 '19 22:08 Exscotticus

You're right. Just checked the documentation, the startfile is Windows specific. For now, you can comment out the line and manually open the UI\index.htm in your browser. I've found a fix for this that I'll apply soon.

AliFlux avatar Aug 25 '19 04:08 AliFlux

Yeah it was by no means a show stopper. I just replaced the line with something that would work for me on my Mac...

os.system('open -a "Google Chrome" UI/index.htm')

Fantastic app, btw. So much fun to watch the threads working.

Any way to change the main preview map from the UI? It would be nice if, after you select a different map, the preview map would switch to that as well.

Exscotticus avatar Aug 25 '19 17:08 Exscotticus

Thanks, that's a great idea. I'll keep this in mind for the next iteration.

AliFlux avatar Aug 26 '19 13:08 AliFlux

The newest commit is decoupled from OS desktop (for compatibility with docker). It won't automatically open the browser anymore

AliFlux avatar Apr 26 '20 19:04 AliFlux

@AliFlux Fantastic repo. Just catching up with it, can this issue be closed?

RussellTaylor83 avatar Sep 08 '21 07:09 RussellTaylor83