Issue
I'm using pyinstaller 5.13.2 for a Pyqt5 application and I want that the final release has no console, but for debug purposes, I want to show the console automatically for develop branch and release candidates.
I don't want to use different .spec files to ensure release candidates and final release will give the same output (except for the console).
I tried to use --console argument in the command, but it does not work with .spec files.
Any idea? Update pyinstaller to 6.2.0 will help?
Solution
Finally, I added an argument in the spec file to change the value of console
in the EXE object. Add arguments are not implemented in PyInstaller 5.13.2, it was implemented in 6.0.0.
An example of adding arguments to a spec file can be found in PyInstaller documentation.
Answered By - Javier Portillo Medina
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.