Executing Python Scripts on Mac using Python Launcher
Hans Mulder
hansmu at xs4all.nl
Tue Jun 26 17:48:22 EDT 2012
On 26/06/12 22:41:59, Dave Angel wrote:
> On 06/26/2012 03:16 PM, Hans Mulder wrote:
>> <SNIP>
>>
>> Python is an executable, and is
>> typically located in a "bin" directory. To find out where
>> it is, type
>>
>> type python
>>
>> at the shell prompt (that's the first prompt you get if you
>> open a Terminal window).
>>
>>
>
> That's a typo. You presumably meant:
>
> which python
>
No, I meant:
$ type python
python is /Library/Frameworks/Python.framework/Versions/2.7/bin/python
'type' is a bash builtin that tells you how bash would interpret
a command. 'which' is a separate program, which tells you how
csh would interpret a command. For a 'bash' user, 'type' is more
accurate than 'which'. For example, 'type' recognizes 'bash'
builtins.
-- HansM
More information about the Python-list
mailing list