From 2da8b2d334f991b222ace134b473b8b08aac75f7 Mon Sep 17 00:00:00 2001 From: Joey Parrish Date: Tue, 8 Sep 2015 09:31:15 -0700 Subject: [PATCH] Prefer local linter to globally-installed copy Fixes #153 Change-Id: Idaf621af999a6eb53cab8dd0e814272bab0d0101 --- third_party/gjslint/gjslint | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/third_party/gjslint/gjslint b/third_party/gjslint/gjslint index da645069b2..b5babb2173 100755 --- a/third_party/gjslint/gjslint +++ b/third_party/gjslint/gjslint @@ -23,8 +23,8 @@ dir = os.path.dirname(__file__) gflags_path = os.path.join(dir, 'python-gflags-2.0') linter_path = os.path.join(dir, 'closure_linter-2.3.13') -sys.path.append(gflags_path) -sys.path.append(linter_path) +sys.path.insert(0, gflags_path) +sys.path.insert(0, linter_path) from closure_linter import gjslint