vanutsteen.nl => nerds only A blog on rails, php, computing, my bass guitar and stuff

Sublime Text 2

on in Development, Linux, PHP, Python, Ruby

I installed sublime text on my Ubuntu 11.10 box but I had some troubled loading external python modules:

1
2
3
4
5
loaded 937 snippets
>>> import distutils
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named distutils

This is how I solved it:

Edited ~/.local/share/applications/sublime.desktop Especially this line:

1
Exec="/home/leon/Software/bin/sublime" %U

/home/leon/Software/bin/sublime contains this:

1
2
3
#!/bin/bash
cd /usr/lib/python2.7
/home/leon/Software/SublimeText2/sublime_text

Then I installed some excellent plugins:

Comments