|
From: Dan S. <da...@to...> - 2004-08-16 15:14:32
|
On Mon, 16 Aug 2004 20:33:14 +1000, Maurice Ling <mau...@ac...> wrote: > My current way [of managing two Python installations] is to a > sys.path.append every time I use macpython so that my installed > packages are recognized. I am also using jython. Although this is a > complete different story, there is a registry file in jython that I > can enter extra paths so that I do not have to do sys.path.append > every time. Although this is the wrong place to ask this but is there > a similar mechanism in fink python and macpython? I will appreciate > any help. Because I think the simplest way out is to have a way so > that both pythons will search the same (somewhat duplicated as well) > set of libraries. In addition to what Martin mentioned, you can also set the PYTHONSTARTUP environment variable to point to a python script that will be executed when Python starts up. That script can check which Python is running (fink's or Apple's; look inside the sys module for more information) and take different actions depending on the result. I also highly recommend the usenet group comp.lang.python (or the equivalent mailing list) and the Python Mac SIG for Python and Mac Python related quesstions. See the first two links listed on <http://www.python.org/community/>. HTH, Dan -- Dan Sommers Atoms are not things. This sentence is false. --Werner Heisenberg <mailto:da...@to...> Intercourse the penguin. <http://www.tombstonezero.net/dan/> --Monty Python's Flying Circus |