Pythonw.exe导致脚本崩溃,但不会导致Python.exe崩溃

时间:2016-06-13 02:52:27

标签: python python-2.7 pythonw

Python 2.7脚本在Windows 7 64位上运行良好。

  • 然而,完全相同的脚本myscript.pyw只是重命名为.pyw扩展程序,在崩溃之前会运行一段时间。通过双击文件来启动它。

此脚本使用subprocess模块运行另一个程序,ctypes模块使用while模块检查无限while True: try: runSomeCode() except Exception(e) logging.error(e) 循环中的用户空闲时间。

.pyw

奇怪的是npm install -g bower to install bower 文件崩溃不会导致任何错误记录到文件中。

任何想法可能发生了什么?

0 个答案:

没有答案
相关问题