Module Search Path?
Peter Hansen
peter at engcorp.com
Thu Mar 7 22:19:56 EST 2002
brobbins333 at shaw.ca wrote:
>
> I want to store the modules I have written in their own directory.
> When I add it to the search path with sys.path.append the changes are
> made for one session only. How can I make permanent changes to the
> search path? I am using ActivePython 2.1 (PythonWin) in Win98.
You could create a .pth file in the Python directory. See the
comments in site.py for details. Alternatively, working with
PYTHONPATH would get you there, but it's uglier.
More information about the Python-list
mailing list