0

Hi
The info "joeprogrammer's" gave me to place the python directory at the end of my path but im confused.
My path at the moment looks like this

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Common Files\Adobe\AGL

Python on my pc is in my H:\ drive under a folder called python.
can somebody please write what my path should look like with python on it thanks.


HLA91

BE COOL AND DONT GET STRESSED!:cool:

4
Contributors
3
Replies
4
Views
11 Years
Discussion Span
Last Post by vegaseat
0

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Common Files\Adobe\AGL;H:\Python24

or whatever version of Python you have.

Normally you don't have to do this kind of thing, when you install Python properly with the downloaded MSI installer file.

0

If you just want to add that directory instead of having to rewrite the PATH, just type in:

PATH = H:\Python24; %PATH%

(or whatever version of python... maybe H:\Python25)

The %PATH% is your current path, so this method just adds that directory.

0

A short code to show PYTHONPATH ...

# show the system path for Python --> PYTHONPATH

import sys

print "These are the directories Python looks into for modules and source files:"
for folder in sys.path:
    print folder

print "-"*30  # print 30 dashes

print "This would be your present working folder/directory:"
print sys.path[0]
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.