pyinstaller include extra python files code example Example: generate spec file using pyinstaller pyi-makespec [--onefile] main.py