AliFlux / MapTilesDownloader

A super easy to use map tiles downloader built using Python
MIT License
427 stars 125 forks source link

Only works on Windows #2

Open Exscotticus opened 5 years ago

Exscotticus commented 5 years ago

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'
AliFlux commented 5 years ago

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.

Exscotticus commented 5 years ago

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.

AliFlux commented 5 years ago

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

AliFlux commented 4 years ago

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

RussellTaylor83 commented 3 years ago

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