Linux 터미널 창을 열고 Python 파일을 실행하는 프로그램을 작성하려고합니다. 나는 다음과 같은 오류가Python 3에서 gnome-terminal 하위 프로세스를 호출 할 때 "하위 프로세스 (해당 파일이나 디렉토리가 없습니다)를 실행하지 못했습니다"
import subprocess
subprocess.call(['gnome-terminal', '-x', 'python3 '+filename])
: :이 같은 서브 프로세스 모듈과 gnome-terminal
서브 프로세스를 호출 할 때
Failed to execute child process "python3 /home/user/Documents/test.py” (No such file or directory)
내가 디렉토리에 CD를 시도 /home/user/Documents/test.py
먼저 다음 실행 파일,하지만 작동하지 않았다.