Created
May 13, 2018 10:35
-
-
Save FRidh/c70d67e5ccbeb0b19e0c0d1eb59627dc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import subprocess | |
os.environ["FOO"] = "BAR" | |
subprocess.run("python3 -c 'import os; print(os.environ.get(\"FOO\", \"\"))'", shell=True) | |
del os.environ["FOO"] | |
subprocess.run("python3 -c 'import os; print(os.environ.get(\"FOO\", \"\"))'", shell=True) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment