I need to start a process where I pass some parameters to the sub-process in environment variables.
I know I can use subprocess.run() to do this in python > 3.5. How can I do it with python 2.7 ?
In python 2.7 I can modify the environment variables of the process that start the sub-process. The sub-process will inherit the environment variables. But I don’t want that. I want to set the environment variables only in the sub-process.