On 11/1/2010 6:13 PM, Walter Prins wrote:
On 1 November 2010 21:58, Chris King <g.nius.ck
<http://g.nius.ck>@gmail.com <http://gmail.com>> wrote:
the first way with work for Window, the second is for Linux or
posix systems
Sorry I can't help with PYTHONPATH on windows.
To set a PYTHONPATH in Windows, click "Start", right click "My
computer", click "Properties", click "Advanced" tab/section, click
"Environment variables" button. See if you can find an entry in
either the User variables or the System variables sections named
"PYTHONPATH". If not, add a new entry to "User variables" by clicking
"New", and entering the name "PYTHONPATH" and whatever you want for
the path. Click "OK", "OK", "OK" and you should be back to the
desktop. Open the Python shell, and enter:
>>> import sys
>>> print sys.path
['C:\\Python26\\Lib\\idlelib',
'C:\\Python26\\lib\\site-packages\\pip-0.8.1-py2.6.egg', 'C:\\Test',
'C:\\Python26\\python26.zip', 'C:\\Python26\\DLLs',
'C:\\Python26\\lib', 'C:\\Python26\\lib\\plat-win',
'C:\\Python26\\lib\\lib-tk', 'C:\\Python26',
'C:\\Python26\\lib\\site-packages']
As you can see have an entry "C:\\Test" due to the fact that I created
that as the contents of my "PYTHONPATH" variable.
HTH,
Walter
It worked!
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor