I have a python script which works well when it isn't compiled but when I compile it using pyc it is unable to access the standard python libraries (sys and os in this case). Is there a way of compiling them into the project?
A:
First of all, is this script pure python, or does it have any IronPython in it as well? If it doesn't have anything that strictly requires it to be IronPython, then you can just treat it as a python script and compile it with py2exe.
That should solve your problems because the above method has worked for me every single time in the past
inspectorG4dget
2009-11-06 16:36:29
It pulls in a number of clr libraries so it isn't just pure python.
stimms
2009-11-06 17:49:23