<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>Am 13.03.2009 um 21:34 schrieb Peter Cowan:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>On Fri, Mar 13, 2009 at 1:27 PM, Christian <<a href="mailto:maillists@gmx.de">maillists@gmx.de</a>> wrote:<br><blockquote type="cite"><br></blockquote><blockquote type="cite">Am 13.03.2009 um 21:12 schrieb Alex Ross:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite">On Mar 13, 2009, at 12:59 PM, Rob McBroom wrote:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">On 2009-Mar-13, at 2:15 PM, Christian wrote:<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">But I would like to use Python v3 within TextMate when pressing cmd<br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">+R.<br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Could that be done in some way? If yes, could you please a minimal<br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">example how to code it?<br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Try setting TM_PYTHON to "/path/to/python3.0". It can be set per-<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">project or globally in TextMate's preferences. This will make ⌘R<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">use<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Python 3, but it might also be enough to break some commands. I<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">haven't tried it.<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Commands should use /usr/bin/env python — not TM_PYTHON — so this<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">should be ok. You can also use a hash-bang at the start of your<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">script, and ⌘R will respect that.<br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">May I miss something here, but I used<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">#!/usr/bin/env python<br></blockquote><blockquote type="cite">print ("hallo world")<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">and the output window of TM says (it's writter directly under the<br></blockquote><blockquote type="cite">field where your can change the theme) that Python 2.5.1 is used. Is<br></blockquote><blockquote type="cite">there no way to use 3.0.1?<br></blockquote><br>Try:<br><br>#!/usr/bin/env python3.0<br>print ("hallo world")<br></div></blockquote><br></div><div>This produces</div><div><br></div><div><span class="Apple-style-span" style="color: rgb(255, 0, 0); font-family: LuxiMono; font-size: 12px; ">env: python3.0: No such file or directory</span></div><div><br></div><div>Do I have to add something to env?</div><div><br></div><div>Christian</div></body></html>