[TxMt] python bundle: set python-version

Claus clausenator at gmail.com
Wed Oct 14 11:42:23 UTC 2009


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



More information about the textmate mailing list