Hi I have created an application that allows end user python scripting. The main portion of the application is written in python, this I have compiled away to an exe using pyinstaller this is fine that part of the application works just fine.
This application then calls a DLL that embeds python, this then calls some end user python scripts. There has been no problem with this when I've been testing it but once I have compiled the program using pyinstaller the DLL prints the error "ImportError: No module named site".
I'm on Windows with Python 2.7.
From what I can tell from other posts this is a problem with the PYTHONHOME PYTHONPATH environment variables, which I'm sure I can set from within the DLL. However considering that the end user may not have Python installed on their computer do I need to provide the full Python 2.7 installation with my program changing the PYTHONHOME and PYTHONPATH to that installation? Is this the correct way to go about this?