我在此目录下有一个 python 脚本:
work/project/test/a.py
在里面a.py
,我用来subprocess.POPEN
从另一个目录启动进程,
work/to_launch/file1.pl, file2.py, file3.py, ...
蟒蛇代码:
subprocess.POPEN("usr/bin/perl ../to_launch/file1.pl")
在工作/项目/下,我输入以下内容
[user@machine project]python test/a.py,
错误“file2.py,'没有这样的文件或目录'”
如何添加work/to_launch/
,以便file2.py
可以找到这些依赖文件?