-
Notifications
You must be signed in to change notification settings - Fork 0
Building an executable
-
Install
auto-py-to-exe
pip install auto-py-to-exe
-
Start auto-py-to-exe in the root folder of this repository:
auto-py-to-exe -c build_settings.json
-
Because the path to each file is different on every machine and relative file paths do not work, you'll have to manually replace every occurrence of
PathTo
in input fields to the path of the repo base folder:- In
Script Location
- In
Additional Files
E.g.
PathTo/main.py
=>C:/Users/You/planit/main.py
- In
-
To compile, press CONVERT .PY TO .EXE. The output files are in
output/
One problem is that one of the dependencies, lazy-import
, reads its version from a version file when it is imported. But this file is not included in the final executable folder which causes an error to be thrown when it is imported.
Solution: Include the version file in the desired path in the output folder (/lazy_import/VERSION
).
Furthermore the resources folder must be included in the final executable folder.