python-ropemac is really useful for developing python in emacs, and pylint is also very handy as a analyzer. However, they both don’t work very well with virtualenv, especially because I always run emacs in server mode, and the server instance is usually not under virtualenv.
Here is how to make things work:
Edit .ropeproject/config.py
:
1 | # You can extend python path for looking up modules |
For pylint, generate (by pylint --generate-rcfile
) or copy your default pylintrc
to project root dir. Edit it:
1 | # Python code to execute, usually for sys.path manipulation such as |
After this pylint will work even in emacs.