Skip to content

Instantly share code, notes, and snippets.

@johnlinvc
Created November 22, 2017 10:17
Show Gist options
  • Save johnlinvc/d0a36e91ee7cee958ce7ebdc74485518 to your computer and use it in GitHub Desktop.
Save johnlinvc/d0a36e91ee7cee958ce7ebdc74485518 to your computer and use it in GitHub Desktop.
import os
import subprocess
os.environ["hello"] = "world"
subprocess.call(["python", "b.py"])
import os
import subprocess
subprocess.call(["python", "c.py"])
import os
print(os.environ["hello"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment