我想使用python(2.6)脚本在makefile中构建目标。makefile$shell命令在make运行时似乎不起作用。在
在构建.py公司名称:
p1 = subprocess.Popen(["gmake","libs"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT, bufsize=1)
p1.wait()
output = p1.returncode
print ("gmake returned with return code " + str (output))
生成文件:
^{pr2}$结果如下:
***Start building libs libraries at gmake: /mksnt/date.exe: Command not found
gmake: *** [libs] Error 127
gmake returned with return code 2
目前没有回答
相关问题 更多 >
编程相关推荐