[Tutor] How to set PYTHONPATH
Alan Gauld
alan.gauld at btinternet.com
Tue Nov 7 11:03:45 CET 2006
"Eli Brosh" <ebrosh at nana.co.il> 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
More information about the Tutor
mailing list