Dynamic module importing with McMillan installer

S

Sion Arrowsmith

We have an application which we distribute as a .exe as created
with the McMillan installer, plus a suite of "plugins" which
can also be run as standalone applications for internal use.
The plugins work by freezing the standalone application and
taking the out1.pyz, suitably renamed, and adding the new file
name to sys.path at run time. We can then __import__ the module
(or, specifically, the plugin interface from it). Which works
fine, apart from one new plugin which works unfrozen, works as
a frozen standalone, but when trying to import it frozen
generates an ImportError from Installer/iu.py, "No module named
<name>". It's using, as far as I can tell, the same commands to
build the .pyz as a correctly functioning plugin module. Does
anyone have the slightest clue what might be going wrong?
(Python 2.3 on W2K, McMillan Installer 5 b5_5.)
 
S

Sion Arrowsmith

Sion Arrowsmith said:
[ things not working ]

Never mind, figured it out eventually. Problem was that the
script for starting it off if standalone needs to explicitly
import something from the module to get the module name into
the .pyz .
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,073
Latest member
DarinCeden

Latest Threads

Top