Find file
Fetching contributors…
Cannot retrieve contributors at this time
79 lines (52 sloc) 3.04 KB


Integrates the Python refactoring/completion framework Rope with Textmate. Screenshots and more info can be found at the project's GitHub page.

Many thanks to Github user specialunderwear for his contributions!

Copyright (C) 2010 Julian Eberius


RopeMate needs rope, install it in the python TextMate uses, which by default is /usr/bin/python. Most likely your system python is NOT the python in your path, so you need to:

/usr/bin/easy_install rope

Or you could make TextMate look for packages in your own default python by adding the pythonpath to textmate. If you like that, go to Preferences -> Variables and add one entry:

PYTHONPATH 'the path to the folder that contains the rope package'

That way you can keep your system python clean and still use rope in TextMate.


If you are using virtualenv, add the path to the virtualenv in .ropeproject/

# You can extend python path for looking up modules
prefs.add('python_path', '/Users/ebone/.virtualenvs/lukkien/lib/python2.6/site-packages/')

If you are doing django development, it might help to set the DJANGO_SETTINGS_MODULE in .ropeproject/config.project_opened:

def project_opened(project):
    """This function is called after opening the project"""
    # Do whatever you like here!
    os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'

If you want to make this a bit easier on your self, put the following in your .profile:

function ropecfg() {
    echo "import os"|cat - .ropeproject/ > /tmp/out && mv /tmp/out $1
    sed -E -i '' "s|#prefs.add\('python_path', '\~/python/'\)|prefs.add('python_path', '$VIRTUAL_ENV/lib/python2.6/site-packages')|" $1
    echo "    os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'" >> $1

Make sure the virtualenv is activated, running:

ropecfg .ropeproject/

will add the virtualenv to rope's lookup path and the django settings module to the environment.


This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
GNU General Public License for more details.

You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

Have a look at "LICENSE.txt" file for more information.


This project uses code from other open source projects (Rope) which may include licenses of their own.