37,743
社区成员




def open_file(request):
try:
p =subprocess.Popen('D:\\Apache24\\test.bat',shell=True,stdout=subprocess.PIPE, stdin=subprocess.PIPE,stderr=subprocess.STDOUT,close_fds=False)
except Exception,e:
print e
return HttpResponse(json.dumps({'pkg_path':[]}), 'text/plain')
在浏览器里输入url时能返回pkg_path:[]的,但上面的命令没执行。