how to add a directory to python modules search path
|
| View previous topic :: View next topic |
| Author |
Message |
optomeb
Joined: 19 May 2006 Posts: 113
|
Hello!
Is there a way to add a directory to python modules search path ? |
| |
|
|
|
|
froomzer
Joined: 23 May 2006 Posts: 148
|
Sys.path.append()
Or did you mean outside python? from the shell?
Sys.path is created at runtime from $PYTHONPATH |
| |
|
|
optomeb
Joined: 19 May 2006 Posts: 113
|
| froomzer, I want to make it globally not in a script . I have system python modules in /usr/lib/python-vv/ and in /opt/gnome/lib/python/ |
| |
|
|
froomzer
Joined: 23 May 2006 Posts: 148
|
| PYTHONPATH=/my/path:$PYTHONPAHT |
| |
|
|
optomeb
Joined: 19 May 2006 Posts: 113
|
| froomzer, Thanks alot |
| |
|
|
|
|