Clive Crous <[EMAIL PROTECTED]> wrote: > I'm creating a win32 executable and one of the .py files that I import > has a very restrictive licence. I do not want to have it included in > my generated executable how do I force it 'outside' as a .pyd or > anything else?
You can specify it to the exclude list during the Analysys phase (see the spec files and the documentation). Basically you'll have to add an argument to Analysys() like this: excludes=["thismodule"]. After that, everything should work out-of-the-box as PyInstaller does not block normal imports from happening (sys.path is still in effect: it just contains additional entries at the beginning to let PyInstaller first search the interal library in the executable). -- Giovanni Bajo _______________________________________________ PyInstaller mailing list [email protected] http://lists.hpcf.upr.edu/mailman/listinfo/pyinstaller
