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
文件崩溃不会导致任何错误记录到文件中。
任何想法可能发生了什么?