Difference between revisions of "Python:Environment variables"
Jump to navigation
Jump to search
(Created page with "<syntaxhighlight lang=python> import os import subprocess env = os.environ.copy() for var in env: print(var,env[var] </syntaxhighlight> ToDo: check where this commes in...") |
(No difference)
|
Latest revision as of 12:27, 26 November 2021
import os
import subprocess
env = os.environ.copy()
for var in env:
print(var,env[var]
ToDo:
check where this commes in handy:
subprocess.Popen(my_command, env=my_env)