From 147a73a3ce8c91d61e3448fed3a8e9e763cf6750 Mon Sep 17 00:00:00 2001 From: Sylvain Th?nault Date: Fri, 20 Dec 2013 17:07:15 +0100 Subject: fix way to get pylint.lint file as suggested in issue #106 --- epylint.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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] -- cgit v1.2.1