summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSylvain Thénault <sylvain.thenault@logilab.fr>2013-12-20 17:07:15 +0100
committerSylvain Thénault <sylvain.thenault@logilab.fr>2013-12-20 17:07:15 +0100
commit604d7146db0a335884a07b4adba634c8de96f609 (patch)
tree4c91eaec144063a66b5bc774562a7899f4be44d2
parent1149bfa77266654676f522c9fef32f91f64956a4 (diff)
downloadpylint-git-604d7146db0a335884a07b4adba634c8de96f609.tar.gz
fix way to get pylint.lint file as suggested in issue #106
-rwxr-xr-xepylint.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/epylint.py b/epylint.py
index d22d89c29..b7822455d 100755
--- a/epylint.py
+++ b/epylint.py
@@ -76,7 +76,8 @@ def lint(filename, options=None):
# Start pylint
# Ensure we use the python and pylint associated with the running epylint
- lintPath = os.path.join(os.path.dirname(__file__), 'lint.py')
+ from pylint import lint
+ lintPath = lint.__file__
options = options or ['--disable=C,R,I']
cmd = [sys.executable, lintPath] + options + ['--msg-template',
'{path}:{line}: [{symbol}, {obj}] {msg}', '-r', 'n', childPath]