[Pythonmac-SIG] Difference between pythonw and python?

Jens Miltner jum at mac.com
Wed Mar 31 06:55:19 EST 2004


Am 31.03.2004 um 13:49 schrieb Michael Hudson:

> Jens Miltner <jum at mac.com> writes:
>
>> Am 31.03.2004 um 13:02 schrieb Michael Hudson:
>>
>>> Jens Miltner <jum at mac.com> writes:
>>>
>>>> What exactly (at the code level) is the difference between pythonw 
>>>> and
>>>> python?
>>>
>>> pythonw is a shell script :-)
>>
>> Doh! Should've been able to find that out by myself... :-|
>> Unfortunately, looking at this doesn't help me with my original
>> problem of getting Tkinter to work with my app that embeds python :(
>>
>> Do you happen to know why the /usr/bin/python executable differs from
>> the Python.app executable, when both are in the same Python.framework?
>> I'd assume that when the framework comes with Panther, there shouldn't
>> be two python executables...???
>
> It has something to do with the executable (aka argv[0]?) being seen
> to be in a bundle.  Is your app that embeds Python a bundle?

Yes, it's an application package. I link against the Python.framework 
(or actually, I load it dynamically - not sure whether that makes a 
difference. Maybe I should try to link against Python.framework for 
testing purposes...)

</jum>




More information about the Pythonmac-SIG mailing list