[Pythonmac-SIG] Re: PYTHONPATH on OS X

leo halloleo at myrealbox.com
Wed Oct 29 21:48:12 EST 2003


hi there

just read the thing about   ~/.MacOSX/environment.plist en passant... it's
great!

thanks, leo

----- Original Message -----
From: "Larry Meyn" <Larry.A.Meyn at nasa.gov>
To: "Louis Pecora" <pecora at anvil.nrl.navy.mil>
Cc: <pythonmac-sig at python.org>; "Tom Loredo" <loredo at astro.cornell.edu>
Sent: Thursday, October 30, 2003 7:00 AM
Subject: Re: [Pythonmac-SIG] Re: PYTHONPATH on OS X


> Another option to set environment variable on OS X is a preference pane
> utility available at:
> http://www.rubicode.com/Software/RCEnvironment/
>
> --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
> >
> >
>
>
> _______________________________________________
> Pythonmac-SIG maillist  -  Pythonmac-SIG at python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig
>
>




More information about the Pythonmac-SIG mailing list