472,351 Members | 1,562 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,351 software developers and data experts.

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 2145
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Greg | last post by:
The following article from microsoft describes a workaroind for a bug in hte beta version of VISUAL PYTHON DOT NET ...
3
by: Peter Schwalm | last post by:
I'd like to modify the python search path depending on the source directory of the script being started. The reason is: I use a version control...
9
by: Amir Dekel | last post by:
Hi everyone, I have two problems: 1. How can I keep my changes in sys.path after closing the interpreter? 2. os.path.expanduser("~") always...
3
by: Larry Bates | last post by:
I had occasion to look back at a project I did over a year ago and needed to make one small change. I use py2exe to package it for distribution...
8
by: James Owens | last post by:
I'm a relative newbie, interested in storing the information from several server directories and subdirectories in XML so that I can present it...
9
by: Ben Dewey | last post by:
Project: ---------------------------- I am creating a HTTPS File Transfer App using ASP.NET and C#. I am utilizing ActiveDirectory and windows...
3
by: Jim Heavey | last post by:
Trying to figure out the technique which should be used to add rows to a datagrid. I am thinking that I would want an "Add" button on the footer,...
0
by: Jeff Reed | last post by:
I am experiencing the the problem outlined the below. Unfortunately, I am using WinXP and I not sure if I can apply the solution due to lack of...
4
by: aine_canby | last post by:
Hi, Do the Python Paths come in the form of a dictionary where I can access a particular path my its key in the registry? For example, in...
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.