Adding a directory to the Python System Path - Edit the registry?

  • Thread starter redefined.horizons
  • Start date
R

redefined.horizons

I have been trying to find a way to add a directory to Python's sytem
path on my MS Windows XP computer. I did some searching online, but the
only solution I found involved editing the MS Windows Registry. That
seemed a little to hard core. Is there another easier way to do this?

Thanks,

Scott Huey
 
M

Martin P. Hellwig

I have been trying to find a way to add a directory to Python's sytem
path on my MS Windows XP computer. I did some searching online, but the
only solution I found involved editing the MS Windows Registry. That
seemed a little to hard core. Is there another easier way to do this?

Thanks,

Scott Huey

Take a look at:
http://docs.python.org/tut/node8.html

Specifically 6.1.1 and 6.2, perhaps that might answer your question.

Cheers
 
R

redefined.horizons

Thanks Martin.

I'll take a look at the documentation you pointed out.

Scott
 
R

rweth

Thanks Martin.

I'll take a look at the documentation you pointed out.

Scott

There is a file you can use to extend your system path on my windows box
it is here:
C:\Python24\Lib\site-packages\package.pth

Inside the package.pth I have added:
C:\\QA\\bin
I think I needed to do this in linux as well (and it worked).
Find your installation path to ../Lib/site-packages and if that file
does not exist create it and add your paths in their own lines no
separators needed.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top