Search path on Windows

Jason Taylor jason00taylor at hotmail.com
Mon Aug 19 21:10:29 EDT 2002


This is a newbie question.

How do you tell the pyhton interpreter where to find modules that you
want to import?

Say, I have a file mymodule1.py in directory C:\home\MyPythonCode

In another file, I have the statement:

from mymodule1 import *

How do I configure Python 2.2 for Windows, so that it will know where
to find mymodule1.py?

Does it matter that I am running the scripts from emacs?

I have the book "Programming Python" by Mark Lutz but I can't seem to
find the information I need.

Thanks,
Jason



More information about the Python-list mailing list