阅读背景:

有没有更好的方法来控制子进程的PYTHONPATH?

来源:互联网 

I have a set of scripts that has to modify os.sys.path on the fly. The scripts then kick off a subprocess. Ideally, the subprocess would have the same os.sys.path as the caller. I want to avoid passing it in as an argument, since that would require a modification to the subprocess script.I have a set of scripts that has to modify os.s




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: