Module import problem

Anthony DeLorenzo gonzo at vex.net
Mon Feb 28 18:10:28 EST 2000


I'm having the dumbest problem trying to import a module.  I can't figure
it out at all.  Basically, I'm on a win32 system.  The directory 
\py152\lib is on my python path, and I'm trying to import the module
\py152\lib\gadfly\gadfly.py.

So, I use this:
import gadfly.gadfly

And for some incomprehensible reason it doens't work.  I've used this 
statement to import other modules in sub-folders, but it just won't
work for this particular one.  Any ideas, because I'm stumped.  The 
only way I can get it to import is by running python from the gadfly
directory, so I do at least know that the module exists.

Tony


-- 
# Anthony DeLorenzo <drgonzo at canada.com>
# http://www.vex.net/~gonzo/
# mojo wire: 209-391-8932



More information about the Python-list mailing list