[python-win32] genpy and py2exe
Erignac, Charles A
charles.a.erignac at boeing.com
Tue May 13 10:04:28 EDT 2003
I am trying to use the genpy capability from within the confines of Python program packaged by py2exe. This program and its dependent modules are packaged in a single executable zip archive. When the executable starts the support code of py2exe substitutes the default module importer, which looks for modules in the file system, with an importer that looks for modules directly in the archive.
For some reason I cannot pre-package my COM wrappers. Unfortunately the py2exe is incompatible with generating wrappers on demand. Genpy will create the wrappers but the Python environment cannot load them.
I have not looked deep enough yet in the importer mechanism to know whether one could add a secondary importer to look for the modules elsewhere.
Suggestions are welcome.
Best regards,
Charles
More information about the Python-win32
mailing list