Module import via sys.path and py2exe

flupke flupke at
Mon Sep 26 15:06:02 CEST 2005

flupke wrote:

> I forgot to add that if i check the shared.lib py2exe creates, the 
> program1 dir and subdirs/files are there so they are included in the 
> package.
> Benedict


i solved it by adding the same import statement to the py2exe 
script as in my code:

import sys

I'm still not sure though that the way i'm adding the module in the 
first place is correct but it seems to work okay.


More information about the Python-list mailing list