Module Import Path?

Jesse B. jburns131 at
Sat Jul 31 23:08:28 CEST 2004

Thank you for the quick response, this was driving me alittle nuts. I
appreciate the help.

"Brian van den Broek" <bvande at> wrote in message
news:mailman.1013.1091293872.5135.python-list at
> Jesse B. said unto the world upon 31/07/2004 15:42:
> > I have just begun to learn python using o'reilly's Learning Python, and
> > chapter 3 it talks about importing modules. It has me make modules to
> > practice using the 'import' and 'from' statements from the python
> > line.
> >
> > I don't know what directory to save these files in because I'm not sure
> > directories  'import' is looking in to find modules. I've done some
> > searches trying to find out where the 'import' search path is, but I'm
> > familiar enough with python to do a clear enough search. I'd appriciate
> > if anyone can help me out or point me in the right direction.
> >
> >
> Hi,
> Typing too quickly, I wrote
> > import sys
> > sys.path
> >
> > will tell you how your Python Path is configured.
> Not everything returned by sys.path is there because of your PYTHONPATH
> environment variable. For instance, the first entry is the one from which
> your running script was loaded. Likewise, the standard Library Dirs are
> there, too. Check out the sys module documentation for the full details.
> Best,
> Brian vdB

More information about the Python-list mailing list