このディレクトリの下にあるpythonスクリプトがあります:
work/project/test/a.py
内部では、別のディレクトリからプロセスを起動するためa.py
に使用します。subprocess.POPEN
work/to_launch/file1.pl, file2.py, file3.py, ...
Python コード:
subprocess.POPEN("usr/bin/perl ../to_launch/file1.pl")
そして、work/project/ の下に、次のように入力します。
[user@machine project]python test/a.py,
エラー「file2.py、「そのようなファイルまたはディレクトリはありません」」
work/to_launch/
これらの依存ファイルを見つけることができるように、どうすれば追加file2.py
できますか?