문제

I am using epy/ropemacs for my python project. "C-c g" (rope-goto-definition) works fine if the target is my source file. But it doesnt jump to third party source files. What I want to be able to do is jump to relevant third party source files.

This might be just a matter of letting rope know what the path the libraries are. I dont know how to do it though. Any pointers will be helpful

도움이 되었습니까?

해결책

Ok found the solution. Edit .ropeproject/config.py and add these lines to to set_prefs function

def set_prefs(prefs):
    ...
    prefs.add('python_path', '<path to your external library>')

Example:

    prefs.add('python_path', '/usr/local/google_appengine')

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top