pythoninstallationincludepyinstallerpackaging

Including a directory using PyInstaller


All of the documentation for PyInstaller talks about including individual files.

Is it possible to include a directory, or should I write a function to create the include array by traversing my include directory?


Solution

  • There is also the official supported option using Tree():

    Pyinstaller: generate -exe file + folder (in --onefile mode)

    The TOC and Tree Classes