from ... import *
脑袋发懵走了点弯路,记下来:
import subprocess
engine = subprocess.Popen([wd + 'ELEEYE.EXE',])
...
from subprocess import *
engine = subprocess.Popen([wd + 'ELEEYE.EXE',])
NameError: name 'subprocess' is not defined
哎呀我去,subprocess和funcstools有啥不同,from functools import *没问题啊,比较下Lib\subprocess.py和funcstools.py看看?
咳,from subprocess import *本身没有问题,有问题的是subprocess.Popen,把它改成Popen就okay了。