osx - How to point textmate to the same version of python I get at the command line -


my textmate uses python 2.6.1 , system uses 2.6.5. not big deal difference between them in terms of functionality, packages installed easy_install not available textmate version (2.6.1), though available 2.6.5.

after researching question typed which python @ command line , learned desired python /library/frameworks/python.framework/versions/2.6/bin/python.

i tried alternately adding tm_python shell variables or #! pointing path above. result of each error msg indexerror: list index out of range, passed module q = sys.argv[1].

i cleared these out , tried creating /usr/.profile line

alias python='/library/frameworks/python.framework/versions/2.6/bin/python' 

with no effect.

can tell me doing wrong? in advance.

you there.

in menubar, click textmate, select preferences drop-down menu, , click advanced among options @ top of pop-up window. next, click shell variables among 3 items near top of advanced pane.

menubar > textmate > preferences > advanced > shell variables 

here, want add two variable-value pairs, 1 path , 1 pythonpath, @ bottom left, click "+" add first of these variable-value pair. can edit either variable or value field clicking in text area.

the value want path the:

/library/frameworks/python.framework/versions/2.6/bin 

make sure first directory appears in value field path variable. if want add other directory paths value field, separate 1 added using colon ":"

next, create variable pythonpath , value, specify directory holds site packages. this:

/library/frameworks/python.framework/versions/2.6/lib/python2.6/site-packages 

but verify this.

when have added these 2 variable, make sure check boxes each in far left column.

(you might need re-start textmate.)

finally, make sure hash bang line @ top of python script template consistent did--i.e., directory set value in path should simlink path specified in pound bang line. path specified in pound hash bang should symlink python executable.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -