[Pythonmac-SIG] Re: PYTHONPATH on OS X

Larry Meyn Larry.A.Meyn at nasa.gov
Wed Oct 29 15:00:22 EST 2003

Another option to set environment variable on OS X is a preference pane 
utility available at:

--Larry Meyn

On Oct 29, 2003, at 11:46 AM, Louis M. Pecora wrote:

>> Hi Louis-
>> I saw your MacPy post and thought I'd point out this URL.  I have a
>> similar problem and just came across this via the Dr. Dobb's 
>> Python-URL
>> for this week:
>> http://www.astro.washington.edu/owen/AquaEnvVar.html
>> Hope it helps.  If you are just using Python in a terminal window,
>> the usual unix approach of defining PYTHONPATH in your .cshrc works.
>> But for Python launched from the Finder, you have to play other games.
> Thanks, Tom.  Much appreciated.  I am using the IDE launched from the 
> Finder so I had to (1) Create the directory .MacOSX, (2) Create the 
> file Environment.plist, (3) Edit that file with the plist editor from 
> the Apple development tools and add the PYTHONPATH variable with 
> multiple paths defined and separated by colons.  Careful if you do it 
> this way since 'option' characters are not treated well, i.e. 
> apparently not recognized in the actual file path.  There's probably a 
> work-around for the latter.  Now that I have the Environment.plist I 
> can actually use BBEdit to change it by choosing Open Hidden in the 
> File menu.  Creating the file from scratch would be tough since it's 
> an XML file -- about which I know nuthin'.  But easy to change once 
> you see the layout.  Jack Jensen has been looking for suggestions for 
> a better way to do this.  I thought about writing a Python script to 
> do it, but time may not let me get to that right away.
>> Thanks for the pointer to Bob's packaging of Piddle.  I've been
>> looking for simple plotting with Python on OS X for the last few
>> days; Bob must have added this since I last checked his site.
> Yeah, Piddle is a neat little package.  Easy to build up your own 
> plotting functions from some simple Piddle calls.  I'm very happy 
> someone is keeping it current.
> -- 
> Cheers,
> Lou Pecora
> _______________________________________________
> Pythonmac-SIG maillist  -  Pythonmac-SIG at python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig

More information about the Pythonmac-SIG mailing list