By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,846 Members | 1,872 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,846 IT Pros & Developers. It's quick & easy.

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

P: n/a
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

Jan 5 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
re****************@gmail.com wrote:
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

--
mph
Jan 5 '07 #2

P: n/a
Thanks Martin.

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

Scott

Martin P. Hellwig wrote:
re****************@gmail.com wrote:
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

--
mph
Jan 6 '07 #3

P: n/a
re****************@gmail.com wrote:
Thanks Martin.

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

Scott

Martin P. Hellwig wrote:
>re****************@gmail.com wrote:
>>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

--
mph
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.


Jan 6 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.