【发布时间】:2020-06-13 23:43:11
【问题描述】:
我正在使用 pyinstaller 使用 pyinstaller 中的以下参数将一个非常简单的脚本转换为可执行文件:
pyinstaller -F --add-data "C:\path\to\my_external_file.mp3;." --onefile "C:\path\to\my_script.py" --distpath "C:\path\to\dist\directory"
我想了解如何确定外部文件在转换为可执行文件并包含在脚本旁边后的路径。
【问题讨论】:
标签: python windows pyinstaller executable