[Twisted-Python] Re: Trying to get twisted.protocols.amp to work with py2app...

Nathan nathan.stocks at gmail.com
Wed Mar 5 12:32:11 EST 2008

On Wed, Mar 5, 2008 at 9:59 AM, Steve Holden <steve at holdenweb.com> wrote:
> Nathan wrote:
>  [...]
>  > Does sys.path support zip files??
>  > sys.path.insert(0,'../Resources/lib/python/2.5/site-packages.zip/twisted')
>  > ??
>  Yes. Just add the zip file to sys.path and you can import modules
>  contained in the files inside the zip.


1) sys.path allows zip files (so that's how that works!)
2) sys.path allows relative paths
3) sys.path has the site-packages.zip entry near the end of sys.path

Adding the following line to the top of my script WORKED!


Thanks for all the help, everyone!

~ Nathan

More information about the Twisted-Python mailing list