PYTHONPATH question

Skip Montanaro skip at pobox.com
Sun Apr 6 08:27:49 EDT 2003


    Ali> shouldn't i be able to read PYTHONPATH directly like i read any other env 
    Ali> variable? because i am saying
    Ali> echo $PYTHONPATH
    Ali> and nothing is being displayed.

That just means PYTHONPATH isn't set currently.  In your ~/.profile, simply
set

    PYTHONPATH=<colon-separated list of directories>
    export PYTHONPATH

and you should be okay.

Skip





More information about the Python-list mailing list