On 23Sep2015 02:51, loial <[email protected]> wrote:
I need to modify the LIBPATH environment variable when running a process via 
subprocess, but otherwise retain the existing environment.

Whats the best way to do that?

Make a copy of os.environ, modify the copy, pass it via the env=parameter of subprocess.Popen. That is the most direct and controllable method.

Cheers,
Cameron Simpson <[email protected]>

Tachyon: A gluon that's not completely dry.
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to