<br><font size=2 face="sans-serif">Hi Kumar,</font>
<br>
<br><font size=2 face="sans-serif"> 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>
<br>
<br><font size=2 face="sans-serif"> def executable; @hashbang ||
ENV['TM_PYTHON'] || 'python' end</font>
<br>
<br><font size=2 face="sans-serif">shouldn't this be</font>
<br>
<br><font size=2 face="sans-serif"> def executable; ENV['TM_PYTHON']
|| @hashbang || 'python' end</font>
<br>
<br><font size=2 face="sans-serif">So you can overide the variable?</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>"Kumar McMillan"
<kumar.mcmillan@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 02:51 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><tt><font size=2>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, Steven.Klass@smsc.com <Steven.Klass@smsc.com> 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>
> steven.klass@smsc.com<br>
><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<br>
><br>
<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<br>
</font></tt>
<br>