python编译整个目录内py文件脚本
import os
import sys
import py_compile
import subprocess
import traceback
args = sys.argv[1]
os.chdir(args)
p = subprocess.Popen('find -name "*.py"', stdout=subprocess.PIPE, shell=True)
p.wait()
f...
原创
2018-09-28 15:23:19 ·
1797 阅读 ·
0 评论