Christian,<div><br></div><div>I'm not sure how TextMate works with PATH variables. My best guess is that if it works between TextMate restarts it's OK.<br clear="all"><br>Andrei Maxim<br><a href="http://artfulco.de">http://artfulco.de</a><br>

<br><br><div class="gmail_quote">On Sun, Mar 15, 2009 at 3:07 PM, Christian <span dir="ltr"><<a href="mailto:maillists@gmx.de">maillists@gmx.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div style="word-wrap:break-word"><div><div>Hi Andrei,</div><div><br></div><div>first of all thanks a lot for the great to you and of course to the others too! LaTeX typesetting runs fine again... puuh, but</div><div><br>
</div><div>Am 15.03.2009 um 10:33 schrieb Andrei Maxim:</div><div class="im"><br><blockquote type="cite">Christian,<div><br></div><div>I just took a closer look at the "Update Shell Profile.command" script that you were supposed to run and I noticed that if you don't have ~/.bash_profile, ~/.bash_login or ~/.profile the script will create ~/.bash_profile.</div>
 <div><br></div><div>In case you didn't know, "~/.bash_profile" is the file called ".bash_profile" (notice the leading dot) in your home directory (i.e. "/Users/christian/" if you short username is christian).</div>
 <div><br></div><div>If you open that file you should see at least these lines, probably at the end of the file:</div><div><br></div><div><div># Setting PATH for MacPython 3.0</div><div># The orginal version is saved in .bash_login.pysave</div>
 <div>PATH="/Library/Frameworks/Python.framework/Versions/3.0/bin:${PATH}"</div><div>export PATH</div></div><div><br></div><div>These lines will place the Python 3.0 executable files before the default executable files and when you'll run "python -V" Bash will run the python executable in the Python 3.0 folder because there's the first match. The same thing happens when running "/usr/bin/env python".</div>
 <div><br></div><div>You need to change the search order because most scripts are expecting Python 2.x, not 3.0 (and probably the LaTeX bundle requires Python 2.x). So you need to change the third line to:</div><div><br></div>
 <div><div>PATH="${PATH}:/Library/Frameworks/Python.framework/Versions/3.0/bin"</div><div><br></div><div>What you're doing is changing the search order so Bash will run /usr/bin/python first, which is version 2.5.1. You'll need to use /usr/bin/env python3.0 in your scripts' shebang line to make sure your code is running 3.0.</div>
 </div><div><br></div><div>I hope this clears things up.</div></blockquote><br></div></div><div>You explained it very well and now I have some clue about that stuff works.</div><div>In my case a .profile file was created and I changed the line as you suggested. Afterwards I cleared all "PATH" variables from TextMate and logged out and in again.</div>
<div><br></div><div>Now terminal says 2.5.1 when typing </div><div><br></div><div>python -V</div><div><br></div><div>When I start TM, open my project and type cmd+R for typesetting, I get the following info:</div><div><br>
</div><div><span style="font-family:'Trebuchet MS'"><p style="margin-top:0px">The current PATH is:</p><div class="im"><blockquote style="font-style:italic;margin-top:1em;margin-right:25px;margin-bottom:1em;margin-left:25px;padding-left:1em;border-left-width:4px;border-left-style:solid;border-left-color:rgb(230, 229, 221)">
/usr/bin<br style="margin-top:0px">/bin<br>/usr/sbin<br>/sbin<br></blockquote></div><p>Please add the directory containing “<code style="font-size:95%;font-family:LuxiMono, 'Bitstream Vera Sans Mono', Monaco, 'Courier New', monospace;word-wrap:break-word;white-space:pre-wrap;color:rgb(28, 54, 12);margin-top:0px">kpsewhich</code>” to <code style="font-size:95%;font-family:LuxiMono, 'Bitstream Vera Sans Mono', Monaco, 'Courier New', monospace;word-wrap:break-word;white-space:pre-wrap;color:rgb(28, 54, 12)">PATH</code> in TextMate's Shell Variables preferences.</p>
<p>Alternatively, the PATH can be retrieved from Terminal but this requires a relaunch: <button style="margin-top:0px">Set PATH and Relaunch.</button></p><p><font face="'Lucida Grande'">After I pressed "Set PATH and Relaunch" the shell variable for PATH is set to</font></p>
<p><font face="'Lucida Grande'">/sw/bin:/sw/sbin:/sw/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:/usr/X11/bin:/usr/X11R6/bin:/Library/Frameworks/Python.framework/Versions/3.0/bin</font></p><p><font face="'Lucida Grande'">Is that fine or should it be included in .profile as well?</font></p>
<p><font face="'Lucida Grande'">Christian</font></p></span></div></div><br><br>
_______________________________________________<br>
textmate mailing list<br>
<a href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a><br>
<a href="http://lists.macromates.com/listinfo/textmate" target="_blank">http://lists.macromates.com/listinfo/textmate</a><br>
<br></blockquote></div><br></div>