Pergunta
I can not make TextMate2 to get my PYTHONPATH.
Things I tried:
- Put the PYTHONPATH in Environment.plist (and rebooted. This was the way TM1 got it fine.)
- Create env. variable PYTHONPATH in my .bash_profile
- Using the launchctl commands to make it known on an even lower level to OSX
- Adding a TM_PYTHONPATH to the TM2 preferences env. variables
This is how I verify that the PYTHONPATH is still not the one it ought to be (as compared to in an iPython session):
import sys
print(sys.path)
Solução
The answer was like point 4, but slightly different:
set PYTHONPATH, not TM_PYTHONPATH as the environment variable in the TM2 preferences. (Thanks to Rob McBroom who pointed that out on the mailing list.)
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow