Module import via sys.path and py2exe
flupke
flupke at nonexistingdomain.com
Mon Sep 26 09:06:02 EDT 2005
flupke wrote:
<snip>
> 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
Hi,
i solved it by adding the same import statement to the py2exe setup.py
script as in my code:
import sys
sys.path.append('program1')
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.
Regards,
Benedict
More information about the Python-list
mailing list