2013-05-09 51 views
0

py2exe崩溃,当我开始我的计划的一部分,使用os.listdir打开的文件夹程序()py2exe exe文件崩溃。一切工作在python shell中,但在使用exe时失败。 我没有得到任何错误,在EXE,它只是崩溃。我需要添加到我的设置中?当OS模块启动

这里是我的设置:

from distutils.core import setup 
import py2exe 

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

回答

0

更改文件名:

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

到这样的事情

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

比再试一次。