如何使用 py2exe 将包添加到 .exe 文件中?
我有一个包含两个包的应用程序。
我的 setup.py 是这样的:
sys.argv.append('py2exe')
setup(
options = {'py2exe': {'bundle_files': 1}},
windows = [{'script': "SoundLog.py"}],
zipfile = None,
)
创建 .exe 后,我必须将包放在与 .exe 文件相同的文件夹中。
如何将它们包含在 .exe 中?
提前致谢!
I have an app with two packages..
My setup.py is like this:
sys.argv.append('py2exe')
setup(
options = {'py2exe': {'bundle_files': 1}},
windows = [{'script': "SoundLog.py"}],
zipfile = None,
)
After creating the .exe I have to put the packages in the same folder as the .exe file.
How can I include them in the .exe?
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我正在文件夹中搜索 .py 文件以查看代码中有多少个。
这就是我需要该文件夹的原因!
我在问题中提供的代码是正确的!
I was searching for .py files in a folder to see how many there were in the code.
That was why I needed that folder!
The code that I presented in the question is correct!