mirror of
https://github.com/brentvollebregt/auto-py-to-exe.git
synced 2026-04-26 20:25:50 +03:00
[GH-ISSUE #99] Add "no browser" commandline switch #94
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ganego on GitHub (Jun 2, 2020).
Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/99
Originally assigned to: @brentvollebregt on GitHub.
Please add
-nb(or so), to not run any browser. Then output in console via print() the correct address the program is listening on, for examplehttp://localhost:3826/main.htmlso that it can be copy/pasted.Reason:
Thank you.
@brentvollebregt commented on GitHub (Jun 3, 2020):
I have added created a branch named feature/add-an-argument-to-stop-a-browser-from-opening. The new option proposed is
--no-ui; is this what you're looking for?@ganego commented on GitHub (Jun 3, 2020):
Thank you, seems to do what it should.
It should also print the
index.html. Because just localhost:port won't connect since the server seems to have no auto-redirect to index.html (or make it auto-redirect).I found some (not really important) bug: When you are on the web interface, press F5 several times quickly. The program will crash. Debug logging won't show anything and also no python error getting printed.
@brentvollebregt commented on GitHub (Jun 3, 2020):
Looks like I had some uncommitted changes in my working directory, they are now committed.
When pressing F5 several times quickly, the program ends. This is because Eel has noticed that all the connections have disconnected and the program can now exit as the server does not need to be running any longer; this is the framework.
@ganego commented on GitHub (Jun 3, 2020):
Works. Thank you.
@brentvollebregt commented on GitHub (Jun 3, 2020):
Sweet, I'll merge it into master tomorrow when I get time 👍 ; I'm not by a computer at the moment.
@brentvollebregt commented on GitHub (Jun 3, 2020):
In terms of the f5 issue, I have looked at Eel's documentation again and saw there is a
close_callbackargument that can be passed toeel.startwhich takes:The current implementation for this option shows that if we pass a function that does nothing, it will not stop the server. For this
--no-uioption, I believe it will be more useful if the server does not stop; so I'll add this in before merge.@brentvollebregt commented on GitHub (Jun 3, 2020):
I've fast-forwarded develop onto that branch, bumped the version and it is now getting ready to be deployed; should be on PyPI in less than 10min.
Cheers for the feature request and quick testing. The changes for this feature can be found in
a1966faand are available inv2.7.4.