[PEAK] using peak from a zip file

Phillip J. Eby pje at telecommunity.com
Thu Apr 1 16:24:38 EST 2004


At 02:19 PM 4/1/04 -0600, Stephen Haberman wrote:
>On Thu, Apr 01, 2004 at 11:19:49AM -0500, Phillip J. Eby wrote:
> > Therefore, it would probably be better for you to work on fixing
> > 'reload()', than to try to fudge PEAK's part of the code to work
> > around it.  If you hurry, your fix might be able to get into Python
> > 2.3.4, which is coming up in about a month, I think.
>
>Well. Nuts.
>
>I'm fairly sure I fixed the Python reload bug. See the attached patch
>and output of the 'reloaded...' being from the zip file now instead of
>the wrong location like libs\commands.py.
>
>So, that's great, but now the problem is that the zip importer does not
>support .pyd files,

Right; modules compiled in C have to be loaded externally.  What you can do 
is add a pure-Python module of the same name that loads the .pyd or .so 
file from an external directory.  (Or, in theory, you could extract it 
on-the-fly, but I'm not sure how useful that is.)




More information about the PEAK mailing list