Re: [Tutor] How to set PYTHONPATH

2006-11-07 Thread Alan Gauld

Eli Brosh [EMAIL PROTECTED] wrote 

 How do i set the PYTHONPATH variable ?
 How is it done under Windows XP ?


Go to MyComputer and right click, select Properties

Go to the Advanced Tab
Click the EnvironmentVariables button

In the lower window, labelled System Variables look for PYTHONPATH
If it exists click Edit otherwise click New

In the Name field type PYTHONPATH

In the value field type a list of paths separated by semi-colons
For example mine looks like:

D:\PROJECTS\Python;D:\PROJECTS\Book\section4

Close all the boxes.

You may need a restart to make it take effect I'm not sure on that...

HTH,

-- 
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld
 


___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


[Tutor] How to set PYTHONPATH

2006-11-06 Thread Eli Brosh

How do i set the PYTHONPATH variable 
?
From answers to my query on "editing path" I 
realized that this is what should be done if i want to include another folder in 
the Python search path.

I tried:
import sys
sys.path.append('additional path')

but it worked only at runtime and is forgotten when 
I restart Python.
I would like to append the PYTHONPATH 
permanently.

How is it done under Windows XP ?

Thank you very much for your attention
Eli Brosh___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor