Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #52762
| Date | 2013-08-21 20:22 +1000 |
|---|---|
| From | Cameron Simpson <cs@zip.com.au> |
| Subject | Re: default python os x |
| References | <kuv47h$447$1@news-ailanthus.fernuni-hagen.de> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.76.1377080556.19984.python-list@python.org> (permalink) |
On 20Aug2013 09:01, Uwe Rangs <uwe.rangs@fernuni-hagen.de> wrote:
| Ah, I see. Thank you!
Please don't top post. Thanks.
| On 2013-08-20 05:39:56 +0000, Steven D'Aprano said:
| >alias python1.5='env -u PYTHONSTARTUP python1.5'
I should point out that -u is a GNU env feature. It is not portable,
and in particular OSX "env" does not have it.
A shell function can do the same though:
py20() {
( unset PYTHONSTARTUP
exec python2.0 ${1+"$@"}
)
}
I've said py20 instead of python2.0 primarily because bash is a
bit... picky about function names and rejected the ".".
Cheers,
--
Cameron Simpson <cs@zip.com.au>
But pessimism IS realism! - D.L.Bahr
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
default python os x Uwe Rangs <uwe.rangs@fernuni-hagen.de> - 2013-08-19 22:14 +0200
Re: default python os x Uwe Rangs <uwe.rangs@fernuni-hagen.de> - 2013-08-19 22:24 +0200
Re: default python os x Steven D'Aprano <steve@pearwood.info> - 2013-08-20 05:39 +0000
Re: default python os x Uwe Rangs <uwe.rangs@fernuni-hagen.de> - 2013-08-20 09:01 +0200
Re: default python os x Cameron Simpson <cs@zip.com.au> - 2013-08-21 20:22 +1000
Re: default python os x Joel Goldstick <joel.goldstick@gmail.com> - 2013-08-19 16:46 -0400
csiph-web