<br><font size=2 face="sans-serif">You rock!</font>
<br>
<br><font size=2 face="sans-serif">Thanks so much.</font>
<br>
<br><font size=2 face="sans-serif">---<br>
<br>
Steven M. Klass<br>
<br>
Strategic Manager, Design Automation - Analog Mixed Signal<br>
<br>
SMSC<br>
3930 East Ray Road, Suite 200<br>
Phoenix, Arizona 85044<br>
(480) 704-7046 (Desk)<br>
(480) 225-1112 (Mobile)<br>
steven.klass@smsc.com</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Alexander Ross <alex.j.ross@gmail.com></b>
</font>
<br><font size=1 face="sans-serif">Sent by: textmate-bounces@lists.macromates.com</font>
<p><font size=1 face="sans-serif">03/12/07 03:41 PM</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
TextMate users <textmate@lists.macromates.com></font></div></table>
<br>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">TextMate users <textmate@lists.macromates.com></font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [TxMt] Pymate using the wrong version
of python..</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=3>Steven,</font>
<br>
<br><font size=3>Except that you might write a script specifically for
python 2.3, in which case you might add a hash-bang specifically calling
that interpreter. In this case, you wouldn't want TM_PYTHON to override
the hash-bang.</font>
<br>
<br><font size=3>To understand why /usr/bin/env python doesn't find python2.5,
see here:</font>
<br><a href=http://macromates.com/textmate/manual/shell_commands><font size=3 color=blue><u>http://macromates.com/textmate/manual/shell_commands</u></font></a>
<br>
<br><font size=3>That should solve the problem.</font>
<br>
<br><font size=3>–Alex</font>
<br>
<br><font size=3>On Mar 12, 2007, at 3:16 PM, </font><a href=mailto:Steven.Klass@smsc.com><font size=3 color=blue><u>Steven.Klass@smsc.com</u></font></a><font size=3>
wrote:</font>
<br>
<br><font size=2 face="sans-serif"><br>
Hi Kumar,</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
This is apparently what is happening - worse
it seems to be ignoring my environment all together and overiding it with
the defaults. If I hard code in the python path I want it to use
it works but this is (obviously) undesired. It appears that in pymate.rb
the executable is getting incorrectly (IMHO) defined.</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
def executable; @hashbang || ENV['TM_PYTHON'] || 'python' end</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
shouldn't this be</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
def executable; ENV['TM_PYTHON'] || @hashbang || 'python' end</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
So you can overide the variable?</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
---<br>
<br>
Steven M. Klass<br>
<br>
Strategic Manager, Design Automation - Analog Mixed Signal<br>
<br>
SMSC<br>
3930 East Ray Road, Suite 200<br>
Phoenix, Arizona 85044<br>
(480) 704-7046 (Desk)<br>
(480) 225-1112 (Mobile)</font><font size=2 color=blue face="sans-serif"><u><br>
</u></font><a href=mailto:steven.klass@smsc.com><font size=2 color=blue face="sans-serif"><u>steven.klass@smsc.com</u></font></a><font size=3>
<br>
<br>
</font>
<table width=100%>
<tr valign=top>
<td width=46%><font size=1 face="sans-serif"><b>"Kumar McMillan"
<</b></font><a href=mailto:kumar.mcmillan@gmail.com><font size=1 color=blue face="sans-serif"><b><u>kumar.mcmillan@gmail.com</u></b></font></a><font size=1 face="sans-serif"><b>></b>
<br>
Sent by: </font><a href="mailto:textmate-bounces@lists.macromates.com"><font size=1 color=blue face="sans-serif"><u>textmate-bounces@lists.macromates.com</u></font></a>
<p><font size=1 face="sans-serif">03/12/07 02:51 PM</font><font size=3>
</font>
<br>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
TextMate users <</font><a href=mailto:textmate@lists.macromates.com><font size=1 color=blue face="sans-serif"><u>textmate@lists.macromates.com</u></font></a><font size=1 face="sans-serif">></font></div></table>
<p>
<td width=53%>
<br>
<table width=100%>
<tr valign=top>
<td width=12%>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td width=87%><font size=1 face="sans-serif">"TextMate users"
<</font><a href=mailto:textmate@lists.macromates.com><font size=1 color=blue face="sans-serif"><u>textmate@lists.macromates.com</u></font></a><font size=1 face="sans-serif">></font><font size=3>
</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [TxMt] Pymate using the wrong version
of python..</font></table>
<br>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br><font size=3><br>
<br>
</font><tt><font size=2><br>
from the looks of PyMate, your script's hash bang will override<br>
$TM_PYTHON (not sure if this is correct behavior) so all I can think<br>
is that there is a path issue in TextMate that you're not seeing in<br>
your shell. I did a quick test : /usr/bin/env python -V executed
from<br>
my TextMate shows my expected python version.<br>
<br>
On 3/12/07, </font></tt><a href=mailto:Steven.Klass@smsc.com><tt><font size=2 color=blue><u>Steven.Klass@smsc.com</u></font></tt></a><tt><font size=2>
<</font></tt><a href=mailto:Steven.Klass@smsc.com><tt><font size=2 color=blue><u>Steven.Klass@smsc.com</u></font></tt></a><tt><font size=2>>
wrote:<br>
><br>
> Hi Foks,<br>
><br>
> Not sure if this goes to you all or not
but Pymate is using the<br>
> wrong version of python when it runs my script. Basically I
have a script<br>
> which looks like this<br>
><br>
> #!/usr/bin/env python<br>
> print "Hi"<br>
><br>
> It fires python version 2.3.5.<br>
><br>
> If I open a shell and type /usr/bin/env python it brings up
the version I<br>
> want.<br>
> I have set TM_PYTHON to point to the version I want but still no luck.
Any<br>
> ideas?<br>
><br>
><br>
> ---<br>
><br>
> Steven M. Klass<br>
><br>
> Strategic Manager, Design Automation - Analog Mixed Signal<br>
><br>
> SMSC<br>
> 3930 East Ray Road, Suite 200<br>
> Phoenix, Arizona 85044<br>
> (480) 704-7046 (Desk)<br>
> (480) 225-1112 (Mobile)<br>
> </font></tt><a href=mailto:steven.klass@smsc.com><tt><font size=2 color=blue><u>steven.klass@smsc.com</u></font></tt></a><tt><font size=2><br>
><br>
> ______________________________________________________________________<br>
> For new threads USE THIS: </font></tt><a href=mailto:textmate@lists.macromates.com><tt><font size=2 color=blue><u>textmate@lists.macromates.com</u></font></tt></a><tt><font size=2><br>
> (threading gets destroyed and the universe will collapse if you don't)<br>
> </font></tt><a href=http://lists.macromates.com/mailman/listinfo/textmate><tt><font size=2 color=blue><u>http://lists.macromates.com/mailman/listinfo/textmate</u></font></tt></a><tt><font size=2><br>
><br>
<br>
______________________________________________________________________<br>
For new threads USE THIS: </font></tt><a href=mailto:textmate@lists.macromates.com><tt><font size=2 color=blue><u>textmate@lists.macromates.com</u></font></tt></a><tt><font size=2><br>
(threading gets destroyed and the universe will collapse if you don't)</font></tt><tt><font size=2 color=blue><u><br>
</u></font></tt><a href=http://lists.macromates.com/mailman/listinfo/textmate><tt><font size=2 color=blue><u>http://lists.macromates.com/mailman/listinfo/textmate</u></font></tt></a><font size=3><br>
</font>
<br>
<br><font size=3>______________________________________________________________________</font>
<br><font size=3>For new threads USE THIS: </font><a href=mailto:textmate@lists.macromates.com><font size=3 color=blue><u>textmate@lists.macromates.com</u></font></a>
<br><font size=3>(threading gets destroyed and the universe will collapse
if you don't)</font>
<br><a href=http://lists.macromates.com/mailman/listinfo/textmate><font size=3 color=blue><u>http://lists.macromates.com/mailman/listinfo/textmate</u></font></a>
<br><tt><font size=2><br>
______________________________________________________________________<br>
For new threads USE THIS: textmate@lists.macromates.com<br>
(threading gets destroyed and the universe will collapse if you don't)<br>
http://lists.macromates.com/mailman/listinfo/textmate</font></tt>
<br>