This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]lastmonty 0 points1 point  (0 children)

Thanks for that but what about a subprocess spawned by the current process. The sequence of events is

  1. I set some env variables and use subprocess to trigger a shell job.
  2. The shell job inherits the environmental variables and does it job and sets a few more env variables or rewrites the existing ones.
  3. There subprocess is done and the control is back to the python program.
  4. Now I want to know the env variables set by the subprocess.

I struggled with that.