如何使用Standalone python脚本运行EXE文件

时间:2015-06-30 13:07:04

标签: python windows python-2.7 exe

我试图使用python脚本导出exe文件(比如foo.exe)使用py2exe导出到exe(比如说boo.exe),它总是给出以下错误,因为找不到指定的文件,但我非常确定foo.exe存在并且与boo.exe在同一目录下,在将脚本导出到exe之前代码工作正常!

WindowsError: [Error 2] The system cannot find the file specified: 'C:\\Users\\test\\Desktop\\foo.exe'

代码是

os.startfile("foo.exe")

是某种bug或限制like this one

0 个答案:

没有答案
相关问题