Chromium Code Reviews| Index: third_party/pylint.py |
| =================================================================== |
| --- third_party/pylint.py (revision 292881) |
| +++ third_party/pylint.py (working copy) |
| @@ -16,7 +16,13 @@ |
| 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( |
|
M-A Ruel
2014/11/08 19:28:06
please create a variable;
THIS_DIR = os.path.dirna
vapier
2014/11/08 19:39:16
i specifically did not create a variable because t
M-A Ruel
2014/11/08 19:41:40
Ah ok fine, ignore this then.
|
| + __file__)), 'logilab')) |
| + |
| from pylint import lint |
| args = sys.argv[1:] |