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
commit147a73a3ce8c91d61e3448fed3a8e9e763cf6750 (patch)
tree4c76fd429bda4b0c1e1d862d843765a81ac11044
parent4751e5f3a16df93637e6d56b03bd4605a70c5db4 (diff)
downloadpylint-147a73a3ce8c91d61e3448fed3a8e9e763cf6750.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 d22d89c..b782245 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]