I have a tool organizer written in python that opens other apps using 
subprocess. Those apps can execute scripts written in python. The problem 
is that when I pack organizer with PyInstaller and run it, whenever apps 
oppened by it run python scripts, they use python packed inside of 
organizer.

Easiest example: I open cmd via organizer and write this:

>pythonPython 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:25:58) [MSC v.1500 64 
>bit (AMD64)] on win32Type "help", "copyright", "credits" or "license" for more 
>information.>>> import sys>>> sys.path['', 
>'C:\\Users\\myuser\\AppData\\Local\\Temp\\_MEI156362\\python27.zip', 
>'C:\\Python27\\DLLs', 'C:\\Python27\\lib', 'C:\\Python27\\lib\\plat-win', 
>'C:\\Python27\\lib\\lib-tk', 'C:\\Python27', 
>'C:\\Python27\\lib\\site-packages', 'C:\\Python27\\lib\\site-packages\\win32', 
>'C:\\Python27\\lib\\site-packages\\win32\\lib', 
>'C:\\Python27\\lib\\site-packages\\Pythonwin', 
>'C:\\Python27\\lib\\site-packages\\wx-3.0-msw']

If I open cmd regulary and do the same the output is like this:

['', 'C:\\WINDOWS\\SYSTEM32\\python27.zip', 'C:\\Python27\\DLLs', 
'C:\\Python27\\lib', 'C:\\Python27\\lib\\plat-win', 
'C:\\Python27\\lib\\lib-tk', 'C:\\Python27', 
'C:\\Python27\\lib\\site-packages', 'C:\\Python27\\lib\\site-packages\\win32', 
'C:\\Python27\\lib\\site-packages\\win32\\lib', 
'C:\\Python27\\lib\\site-packages\\Pythonwin', 
'C:\\Python27\\lib\\site-packages\\wx-3.0-msw']

How can i make it use the sysytem interpreter when oppened from .exe?

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/d42c6742-c52e-4286-911d-9521e41aaedc%40googlegroups.com.

Reply via email to