I have a python script (on Windows) that is depending on different wrappers from the corresponding 32-bit dll and a 64-bit dll. Is there a way , like a sand boxing mechanism, that can allow me to load both the 64-bit dll and a 32-bit dll from the same environment( 64 bit python process)?
For further understanding, here is an example: lets say, I have a python script test.py. The test.py is calling fun1 and fun2. fun1 is defined in fun1_test.pyd(32-bit) and fun2 is defined in fun2_test.pyd(64-bit).
Here is what I tried: Since the 64-bit environment can ideally run the 32-bit dll's, I tried executing the python script with the 64-bit python process. But I am noticing the following error: " WindowsError: [Error 193] %1 is not a valid Win32 application "
When I ran the dependency walker, it gives references to the CPU(x86 vs x64) mismatch dll's.
Is there a cleaner way to achieve this?