943,936 Members | Top Members by Rank

Ad:
  • Python Discussion Thread
  • Marked Solved
  • Views: 3538
  • Python RSS
Oct 21st, 2006
0

Python path help 2

Expand Post »
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!
Similar Threads
Reputation Points: 7
Solved Threads: 2
Junior Poster
HLA91 is offline Offline
177 posts
since Oct 2006
Oct 21st, 2006
0

Re: Python path help 2

Quote ...
%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.
Last edited by Ene Uran; Oct 21st, 2006 at 12:45 pm.
Reputation Points: 625
Solved Threads: 211
Posting Virtuoso
Ene Uran is offline Offline
1,704 posts
since Aug 2005
Oct 21st, 2006
0

Re: Python path help 2

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.
Featured Poster
Reputation Points: 83
Solved Threads: 39
Posting Whiz in Training
LaMouche is offline Offline
263 posts
since Oct 2006
Oct 21st, 2006
0

Re: Python path help 2

A short code to show PYTHONPATH ...
Python Syntax (Toggle Plain Text)
  1. # show the system path for Python --> PYTHONPATH
  2.  
  3. import sys
  4.  
  5. print "These are the directories Python looks into for modules and source files:"
  6. for folder in sys.path:
  7. print folder
  8.  
  9. print "-"*30 # print 30 dashes
  10.  
  11. print "This would be your present working folder/directory:"
  12. print sys.path[0]
Moderator
Reputation Points: 1333
Solved Threads: 1403
DaniWeb's Hypocrite
vegaseat is offline Offline
5,792 posts
since Oct 2004

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Python Forum Timeline: password challenge
Next Thread in Python Forum Timeline: I want to learn python





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC