I have a python script (lets call it a.py) that imports several packages (i.e. arcpy) which have to be used in 64bit-mode.
Then I want to call a.py from b.py with os.system("a.py")
However, this throws an error:
ImportError: DLL load failed: %1 is not a valid Win32 application.
When I run a.py directly, it runs smoothly. So I suggest, os.system()
does not use 64-bit-mode.
Is there a way to force os.system()
to run in 64-bit mode? Or is there another way to call a script from another script and choose the mode in which it is called?