469,312 Members | 2,524 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,312 developers. It's quick & easy.

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

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
3 2074
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
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
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.

Similar topics

2 posts views Thread by Greg | last post: by
3 posts views Thread by Larry Bates | last post: by
8 posts views Thread by James Owens | last post: by
3 posts views Thread by Jim Heavey | last post: by
reply views Thread by Jeff Reed | last post: by
4 posts views Thread by aine_canby | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Geralt96 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.