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',
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 rep...@bugs.python.org
http://bugs.python.org/issue24493
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)