[TxMt] Re: python bundle: set python-version

Peder Axensten peder at axensten.se
Wed Oct 14 12:07:07 UTC 2009


PYTHONPATH is used by Python to find modules (libraries), not by the  
system to localize Python itself.

/Peder


On 14 okt 2009, at 13.42, Claus wrote:

> Hi,
> the basic version of this question is:
> "Can I set which version of python the python bundle uses, and how?"
>
> The extended version:
> <disclaimer: you will see that I am not a specialist... />
>
> in the Bundle editor under "Run Script" I can see that there seems to
> be a variable called PYTHONPATH as well as one TM_PYTHON
> Do I need to set PYTHONPATH somewhere?
>
> Two additional things:
> - under Preferences in the Advanced tab under Shell Variables, there
> is a variable called PATH, which points to one python "distribution"
> -- is this related to PYTHONPATH or to my problem?
> - when I create a python script from a template (File--New from
> Template -- Python -- Python Script), then the first line is
> #!/usr/bin/env python
> 	1) there's a link under /usr/bin which is called python which points
> to one distribution -- could that be critical (the critical link that
> needs to be adapted if I want to use another python distribution
> 	2) there is a PATH statement in /usr/bin/env which points to /usr/bin
> (see point (1) )
>
> Thank you for your help,
> Claus
>
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate




More information about the textmate mailing list