need help with pythonpath

Levente Sandor sandorlevi at yahoo.com
Fri Jun 22 10:35:23 CEST 2001


On Thu, 21 Jun 2001 20:22:38 -0500, "NJM" <njm at rectec.net> wrote:

>I'm probably over looking something obvious, but I'm not able to modify my
>pythonpath.  I've tried it every way I can think of with no results.
>
>I'm on a Win 98 machine
>
>Can any one help??
>
>
It can be accessed by sys.path. It's a list so it can be modified
though the list operations append, insert, extend, remove etc.
See section 2.1.5.4 in the Python Documentation.
Example:

import sys
print sys.path
sys.path.append("c:\\myfolder")
print sys.path

Levi




More information about the Python-list mailing list