diff options
author | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2013-12-20 17:07:15 +0100 |
---|---|---|
committer | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2013-12-20 17:07:15 +0100 |
commit | 604d7146db0a335884a07b4adba634c8de96f609 (patch) | |
tree | 4c91eaec144063a66b5bc774562a7899f4be44d2 | |
parent | 1149bfa77266654676f522c9fef32f91f64956a4 (diff) | |
download | pylint-git-604d7146db0a335884a07b4adba634c8de96f609.tar.gz |
fix way to get pylint.lint file as suggested in issue #106
-rwxr-xr-x | epylint.py | 3 |
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] |