: 다음os.system을은 파일을 찾지 못하는 정말이
#is it executable
print os.access("support/d8/d8", os.X_OK)
#is it there in the shell
os.system("test -f support/d8/d8 && echo \"found\" || echo \"not found\"")
과 :
#run it
os.system("support/d8/d8 --trace_exception with a bunch of files");
출력 :
True
found
sh: 1: support/d8/d8: not found
나는 '돈 알았어. 실행 파일이 있습니다. 내가 그것을 시작할 때 왜 거기 있지 않은가?
- 트래비스 빌드 링크 : https://travis-ci.org/albertjan/skulpt/builds
- 및 저장소에 대한 링크 : https://github.com/albertjan/skulpt은 빌드 스크립트는
은 무엇입니까 발생 'support/d8/d8'의 내용? 'not found '는 인터프리터 나 라이브러리를 찾거나 초기화 할 수 없다는 것을 의미합니다. – phihag
그것은 v8의 바이너리 버전입니다. – albertjan
'subprocess.Popen'을 사용하지 않는 이유는 무엇입니까? 이런 종류의 일에 더 신뢰할 수 있어야합니다. –