开发者

How to add packages into .exe file using py2exe?

开发者 https://www.devze.com 2022-12-28 16:51 出处:网络
I have an app with two packages.. My setup.py is like this: sys.argv.append(\'py2exe\') setup( options = {\'py2exe\': {\'bundle_files\': 1}},

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!


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!

0

精彩评论

暂无评论...
验证码 换一张
取 消