Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个包含两个包的应用程序..
我的 setup.py 是这样的:
sys.argv.append('py2exe') setup( options = {'py2exe': {'bundle_files': 1}}, windows = [{'script': "SoundLog.py"}], zipfile = None, )
创建 .exe 后,我必须将包放在与 .exe 文件相同的文件夹中。
如何将它们包含在 .exe 中?
提前致谢!
我正在一个文件夹中搜索 .py 文件,以查看代码中有多少个文件。这就是我需要那个文件夹的原因!
我在问题中提供的代码是正确的!