Home Download Buy Blog Forum Support

Sublime Text 3 changes Python interpreter

Sublime Text 3 changes Python interpreter

Postby Federico_V on Fri May 17, 2013 9:16 am

Hi,

Under Ubuntu 13.04, if you start Sublime Text 3 from terminal, Sublime Text uses the first Python found in PATH. If you start Sublime Text from the desktop or from nautilus, it uses the default system Python.


import sys

if __name__ == '__main__':
print sys.path

Openining Sublime 3 from Terminal:

['/home/federicov', '/home/federicov/Personal_Coding_Projects/networkx', '/home/federicov/anaconda/lib/python2.7/site-packages/ipy_table-1.12-py2.7.egg' .... ]

Opening Sublime 3 from quickstart:

['/home/federicov', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', ...]

Opening Sublime 3 by opening a file from Nautilus:

['/home/federicov', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', ...]
Federico_V
 
Posts: 1
Joined: Fri May 17, 2013 9:09 am

Return to Technical Support

Who is online

Users browsing this forum: No registered users and 6 guests

cron