default python os x
Cameron Simpson
cs at zip.com.au
Wed Aug 21 06:22:11 EDT 2013
On 20Aug2013 09:01, Uwe Rangs <uwe.rangs at 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 at zip.com.au>
But pessimism IS realism! - D.L.Bahr
More information about the Python-list
mailing list