[Pythonmac-SIG] I don't understand

Bob Ippolito bob at redivi.com
Sun May 7 00:07:00 CEST 2006


On May 6, 2006, at 12:57 PM, Jan Erik Moström wrote:

> Bob Ippolito <bob at redivi.com> 2006-05-06 21:53:
>
>> You need to upgrade to Universal Python, or use /usr/bin/env in your
>> #! line.
>
> Yep, that seems to work. Can you explain why?

Universal Python replaces pythonw (and python) with a small  
executable that does what the old pythonw used to (execve a python  
interpreter that lives inside of an application bundle). That means  
pythonw is irrelevant as of Universal Python, because either way you  
start it you'll be able to run GUI stuff.

The reason you can't use the old pythonw in a #! line is because it's  
a shell script and for whatever reason you can't use a shell script  
as the target for a #! line in Mac OS X.

-bob



More information about the Pythonmac-SIG mailing list