Message245717
Sorry I missed this - I can reproduce this on Windows 8.1, but not on Windows 7. I hope I'll be able to try another Windows 8.1 machine today.
SYSTEMROOT is definitely set in the original environment:
>>> os.environ['SYSTEMROOT']
'C:\\Windows'
>>> subprocess.call('{} /c set SYSTEMROOT'.format(cmd32), env=os.environ)
Environment variable SYSTEMROOT not defined
1
>>> subprocess.call('{} /c set SYSTEMROOT'.format(cmd32))
SystemRoot=C:\Windows
0
It seems only a minimal set of environment variables are set in the spawned process:
>>> subprocess.call('{} /c set'.format(cmd32), env=os.environ)
COMSPEC=C:\Windows\SysWOW64\cmd.exe
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.JS;.WS;.MSC
PROMPT=$P$G |
|
Date |
User |
Action |
Args |
2015-06-24 04:14:48 | The Compiler | set | recipients:
+ The Compiler, paul.moore, astrand, tim.golden, zach.ware, eryksun, steve.dower |
2015-06-24 04:14:47 | The Compiler | set | messageid: <1435119287.97.0.114509637529.issue24493@psf.upfronthosting.co.za> |
2015-06-24 04:14:47 | The Compiler | link | issue24493 messages |
2015-06-24 04:14:47 | The Compiler | create | |
|