Python의 subprocess.Popen()
에서 실행 중인 명령 디렉토리를 지정하는 방법이 있습니까?
예:
Popen("c:mytool ool.exe", workingdir="d: estlocal")
내 Python 스크립트는 C:programspython
에 있습니다.
D: estlocal
디렉토리에서 C:mytool ool.exe
를 실행할 수 있습니까?
작업 디렉토리는 어떻게 설정합니까? 하위 프로세스를 위해?
Python의 subprocess.Popen()
에서 실행 중인 명령 디렉토리를 지정하는 방법이 있습니까?
예:
Popen("c:mytool ool.exe", workingdir="d: estlocal")
내 Python 스크립트는 C:programspython
에 있습니다.
D: estlocal
디렉토리에서 C:mytool ool.exe
를 실행할 수 있습니까?
작업 디렉토리는 어떻게 설정합니까? 하위 프로세스를 위해?