Dynamic module importing with McMillan installer

Sion Arrowsmith siona at chiark.greenend.org.uk
Wed Jun 16 12:18:39 EDT 2004


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 -- siona at chiark.greenend.org.uk -- http://www.chaos.org.uk/~sion/
  ___  |  "Frankly I have no feelings towards penguins one way or the other"
  \X/  |    -- Arthur C. Clarke
   her nu becomeþ se bera eadward ofdun hlæddre heafdes bæce bump bump bump



More information about the Python-list mailing list