I'm trying to set an env variable which I want it to be reachable from another windows shell (which is already opened) :
I have tried:
os.environ['start'] = 'test'
Then in a Windows cmd : env.exe | findstr 'start' returns nothing. Variable 'start' does not exist.
Then I tried:
subprocess.call(['setx.exe', 'start', 'test'])
SUCCESS: Specified value was saved
env.exe | findstr 'start' still returns nothing.
How can I get this variable from a windows shell ? Using Windows 10 and python 3. Thanks!