rrennoir / PyAccEngineer

Set pit stop strategy remotely in Assetto Corsa Competizione and basic live telemetry for teammate
MIT License
34 stars 11 forks source link

If compiled e.g. with pyinstaller program keeps opening new GUIs indefinitely #23

Open ghost opened 2 years ago

ghost commented 2 years ago

Program works fine when started via e.g. "StartApp.bat". But after compiling it with "pyinstaller --onedir --add-data .\Config;.\Config main.py" it produces a strange behavior:

Running the main.exe from the dist folder opens a shell window (as pyinstaller is run without --windowed), but keeps creating new GUI windows indefinitely. I couldn't figure out where the program starts to loop as I haven't done any GUI programming in Python yet.

I think it's just a minor tweak to avoid this loop. Thanks for this cool software ;-)

ghost commented 2 years ago

Attention: If compiled with the "--windowed" flag you will have to log out to break the loop ...

rrennoir commented 2 years ago

I had that issue when I tried to compile it myself too 😅 No idea why it does that