954,549 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Python path help 2

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:

HLA91
Junior Poster
177 posts since Oct 2006
Reputation Points: 7
Solved Threads: 3
 
%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.

Ene Uran
Posting Virtuoso
1,723 posts since Aug 2005
Reputation Points: 625
Solved Threads: 213
 

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.

LaMouche
Posting Whiz in Training
269 posts since Oct 2006
Reputation Points: 83
Solved Threads: 39
 

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]
vegaseat
DaniWeb's Hypocrite
Moderator
5,989 posts since Oct 2004
Reputation Points: 1,345
Solved Threads: 1,417
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You