summaryrefslogtreecommitdiff
path: root/tools/gyp/PRESUBMIT.py
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2011-12-03 21:26:50 +0100
committerBen Noordhuis <info@bnoordhuis.nl>2011-12-03 21:28:17 +0100
commite90623edc2befb06602ff8c3e01809ba0a21d593 (patch)
tree142a84aa010f924262925eb2b959d292d6624576 /tools/gyp/PRESUBMIT.py
parent49ba55b10045969d9dba89ee11a53ca2d35d8f7f (diff)
downloadandroid-node-v8-e90623edc2befb06602ff8c3e01809ba0a21d593.tar.gz
android-node-v8-e90623edc2befb06602ff8c3e01809ba0a21d593.tar.bz2
android-node-v8-e90623edc2befb06602ff8c3e01809ba0a21d593.zip
gyp: upgrade to r1103
Diffstat (limited to 'tools/gyp/PRESUBMIT.py')
-rw-r--r--[-rwxr-xr-x]tools/gyp/PRESUBMIT.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/gyp/PRESUBMIT.py b/tools/gyp/PRESUBMIT.py
index 737584bc7e..146327d784 100755..100644
--- a/tools/gyp/PRESUBMIT.py
+++ b/tools/gyp/PRESUBMIT.py
@@ -34,6 +34,16 @@ def CheckChangeOnCommit(input_api, output_api):
input_api, output_api,
'http://gyp-status.appspot.com/status',
'http://gyp-status.appspot.com/current'))
+
+ import sys
+ old_sys_path = sys.path
+ try:
+ sys.path = ['pylib', 'test/lib'] + sys.path
+ report.extend(input_api.canned_checks.RunPylint(
+ input_api,
+ output_api))
+ finally:
+ sys.path = old_sys_path
return report