简体   繁体   中英

How to add packages into .exe file using py2exe?

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!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM