Place to keep the Modules
aleaxit at yahoo.com
Thu May 31 10:55:34 EDT 2001
"Prem Rachakonda" <prem at engr.uky.edu> wrote in message
news:e56d8da7.0105310632.7eb60921 at posting.google.com...
> If I am writing my own modules, and if I want to import them, is it
> necessary to keep in the LIB directory. If not, how to import the
> modules stored in a different directory.
Just place in your PYTHONHOME (e.g. c:\Python21 in a typical
standard Python 2.1 installation on Win32) a textfile with any
name, extension .pth, and, one per line, the directories you
want to be added to the sys.path on startup. site.py, which
runs at each startup of Python, will build your sys.path
More information about the Python-list