[Tutor] setting path

Paul Tremblay phthenry@earthlink.net
Sat, 20 Apr 2002 23:24:47 -0400


I would like to set up a library in my home file for my own
modules. I want to set the path of the Python, but am not able
to do so. I am running Mandrake 8.1. 

>From bash, I type:

ehco $PYTHONPATH

I get nothing.

>From a python script, I type

import sys
print sys.path

I get:

['/home/paul/paultemp', '/usr/lib/python2.1',
 '/usr/lib/python2.1/plat-linux-i386',
 '/usr/lib/python2.1/lib-tk', '/usr/lib/python2.1/lib-dynload',
 '/usr/lib/python2.1/site-packages']

I don't believe I can simply type 

PYTHONPATH=/home/paul/python_lib
export $PYTHONPATH

since $PYTHONPATH is not set up.

Thanks!

Paul


-- 

************************
*Paul Tremblay         *
*phthenry@earthlink.net*
************************