Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only works on Windows #2

Open
Exscotticus opened this issue Aug 24, 2019 · 5 comments
Open

Only works on Windows #2

Exscotticus opened this issue Aug 24, 2019 · 5 comments

Comments

@Exscotticus
Copy link

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
Copy link
Owner

AliFlux commented Aug 25, 2019

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
Copy link
Author

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
Copy link
Owner

AliFlux commented Aug 26, 2019

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

@AliFlux
Copy link
Owner

AliFlux commented Apr 26, 2020

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

@RussellTaylor83
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants