I've tried adding the .kv file, as well as a mdb and dsn file (for pypyodbc) using --add-data, but I get an error: unrecognized arguments: --add-data'main.kv'. (There were more --add-data arguments for the other files mentioned.) Are there any solutions for this or maybe alter...
-p DIR, --paths DIR A path to search for imports (like using PYTHONPATH). Multiple paths are allowed, separated by ';', or use this option multiple times --add-data <SRC;DEST or SRC:DEST> Additional non-binary files or folders to be added to the executable. The path separator is ...
Because your script includes the statementimporthelpmod,PyInstallerwill create this folder arrangement in your bundled app. However, it will only include the.pyfiles. The data filehelp_data.txtwill not be automatically included. To cause it to be included also, you would add adatastuple to the...
but you can add multiple ico's, png's or jpg's using ('app/img/*.ico', 'app/img') You may also create another tuple like soadded_files = [ (), (), ()] to have multiple imports
set base path for import (like using PYTHONPATH). Multiple directories are allowed, separating them with the path separator (‘;' under Windows, ‘:' under Linux), or using this option multiple times. 去试试: D:\tmp\tmp_dev_root\python\tutorial_summary\make_exe\pyinstaller-2.0>pyinstaller...
can be used multiple times. --add-binary<SRC;DESTorSRC:DEST>Additional binary files to be added to the executable. See the ``--add-data`` option for more details. This option can be used multiple times. -p DIR, --paths DIR A path to search for imports (like using PYTHONPATH). ...
文档链接:https://pyinstaller.org/en/stable/usage.html#cmdoption-add-data 建议使用spec文件。https:...
systems) is used. This option can be used multiple times. --add-binary <SRC;DEST or SRC:DEST> Additional binary files to be added to the executable. See the ``--add-data`` option for more details. This option can be used multiple times. ...
multiple times. --add-binary <SRC;DEST or SRC:DEST> Additional binary files to be added to the executable. See the ``--add-data`` option for more details. This option can be used multiple times. -p DIR, --paths DIR A path to search for imports (like using PYTHONPATH). Multiple ...
As with other options, this can be specified by command line arguments,--add-data bash pyinstaller --windowed --icon=hand.ico --add-data="hand.ico;."app.py You can provide `--add-data` multiple times. Note that the path separator is platform-specific, on Windows use `;...