summaryrefslogtreecommitdiff
path: root/pyreverse/main.py
diff options
context:
space:
mode:
authorEmile Anclin <emile.anclin@logilab.fr>2010-09-02 18:59:40 +0200
committerEmile Anclin <emile.anclin@logilab.fr>2010-09-02 18:59:40 +0200
commit1996fe764d7dd1d7e8db0a25633c80d94aeed235 (patch)
tree9cfd8eefa63244f0c877b5fd40dd4e4d8fa60066 /pyreverse/main.py
parente489ede4f3d0ff5650d4094fa08e45c3fc60701b (diff)
downloadpylint-1996fe764d7dd1d7e8db0a25633c80d94aeed235.tar.gz
add a comment: closing #9542: unrecognized ancestor
Diffstat (limited to 'pyreverse/main.py')
-rw-r--r--pyreverse/main.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pyreverse/main.py b/pyreverse/main.py
index e7fdbf2..da80bd6 100644
--- a/pyreverse/main.py
+++ b/pyreverse/main.py
@@ -102,6 +102,8 @@ class PyreverseCommand(ConfigurationMixIn):
if not args:
print self.help()
return
+ # insert current working directory to the python path to recognize
+ # dependencies to local modules even if cwd is not in the PYTHONPATH
sys.path.insert(0, os.getcwd())
try:
project = self.manager.project_from_files(args)