简体   繁体   中英

py2exe exe crashes when os module starts

py2exe crashes when I start a part of my program, the open folder program that uses os.listdir(). Everything works in the python shell, but fails when used in exe . I don't get any errors, in the exe , it just crashes. What do I need to add to my setup?

Here is my setup:

from distutils.core import setup
import py2exe

setup(console=['drbOSbeta0.35(unfinished).py'])

Change the file name:

setup(console=['drbOSbeta0.35(unfinished).py'])

to something like this

setup(console=['drbOSbeta0_35_unfinished.py'])

than try again.

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