[TxMt] Re: TM_PYTHON ignored?
kmichael.aye at gmail.com
Fri Feb 8 08:37:14 UTC 2013
On 2013-02-08 08:22:45 +0000, Allan Odgaard said:
> On Feb 8, 2013, at 8:13 AM, K.-Michael Aye
> <kmichael.aye at gmail.com> wrote:
>> […] When I do NOT have a shebang, it uses the above linked interpreter.
>> ONLY when I use
>> #!/usr/bin/env python
>> as shebang, the WRONG interpreter (OSX default Python) is being used,
>> despite the fact that when I am using "/usr/bin/env python" in a
>> Terminal I again get the one I want […]
> That is because the above shebang will use python found via PATH and
> you have likely altered your PATH for your shell so that the location
> of your custom installed python is listed before the system’s location.
> You can alter PATH for TextMate in the same way, though I’m considering
> letting the script runners ignore shebang when TM_«interpreter» is set
> — it is likely more practical (despite a little wrong, e.g. your
> shebang could be broken, and you would never notice while developing in
> TextMate, because it is ignored).
Thank you, Allan, that connection between the env shebang and the PATH
variable I was missing. Added PATH to Textmate's variables and now
everything works as expected.
> textmate mailing list
> textmate at lists.macromates.com
More information about the textmate