[issue24493] subprocess with env=os.environ fails with "fatal python error" when calling 32-bit python from 64-bit one on Windows

2015-06-23 Thread Florian Bruhin
Florian Bruhin added the comment: That gives me "Environment variable SYSTEMROOT not defined" which would explain the "Fatal Python error" I'm seeing. -- ___ Python tracker ___

[issue24493] subprocess with env=os.environ fails with "fatal python error" when calling 32-bit python from 64-bit one on Windows

2015-06-23 Thread eryksun
eryksun added the comment: I can't reproduce this in Windows 7 or 10 using Python 3.4. What gets printed for the following? import os import subprocess cmd32 = os.path.join(os.environ['SYSTEMROOT'], 'SysWOW64', 'cmd.exe') subprocess.call('{} /c set SYSTEMROOT'.format(cmd32), env=os.environ) -

[issue24493] subprocess with env=os.environ fails with "fatal python error" when calling 32-bit python from 64-bit one on Windows

2015-06-23 Thread Florian Bruhin
New submission from Florian Bruhin: Trying to call a 32bit Python via subprocess from a 64bit one works as expected: Python 3.4.2 (v3.4.2:ab2c023a9432, Oct 6 2014, 22:16:31) [MSC v.1600 64 bit (AMD64)] on win32 [...] >>> subprocess.check_call([r'C:\Python34_x32\python.exe', '-c',