Chromium Code Reviews| Index: third_party/pylint.py |
| =================================================================== |
| --- third_party/pylint.py (revision 292986) |
| +++ third_party/pylint.py (working copy) |
| @@ -16,7 +16,15 @@ |
| Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| """ |
| +import os |
| import sys |
| + |
| +# Add local modules to the search path. |
| +sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath( |
| + __file__)), 'logilab')) |
|
M-A Ruel
2014/11/18 13:36:06
I see from logilab.<...> in the files, which files
vapier
2014/11/18 18:38:35
pylint imports astroid directly now
|
| +sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath( |
| + __file__)), 'six')) |
|
M-A Ruel
2014/11/18 13:36:06
This could be fixed by renaming six.py to __init__
vapier
2014/11/18 18:38:35
done
|
| + |
| from pylint import lint |
| args = sys.argv[1:] |