pynstaller include file in library directory code example Example: run spec file using pyinstaller >> pyinstaller --onefile main.spec