![]() To unset an environment variable: set FOO=.To set an environment variable: set FOO=BAR.Indeed, there are several ways to use set on cmd.exe: Returns the whole environment in a Python dict.Run the built-in set command and parse its output.The idea is to run a batch script (that’s why we are using shell=True) that will: Process = subprocess.Popen( '" %s "
0 Comments
Leave a Reply. |