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
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
- 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@lists.macromates.com http://lists.macromates.com/listinfo/textmate