gyp_skia: use path python, be quiet
/usr/bin/python might not be python 2.x
I'm getting annoyed by scripts printing messages when there's no problem.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1716493003
Review URL: https://codereview.chromium.org/1716493003
diff --git a/gyp_skia b/gyp_skia
index e68ac16..91d93ca 100755
--- a/gyp_skia
+++ b/gyp_skia
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
# Copyright 2011 The Android Open Source Project
#
@@ -78,8 +78,6 @@
args = sys.argv[1:]
if not os.getenv(ENVVAR_GYP_GENERATORS):
- print ('%s environment variable not set, using default' %
- ENVVAR_GYP_GENERATORS)
if sys.platform.startswith('darwin'):
default_gyp_generators = 'ninja,xcode'
elif sys.platform.startswith('win'):
@@ -89,7 +87,8 @@
else:
default_gyp_generators = 'ninja'
os.environ[ENVVAR_GYP_GENERATORS] = default_gyp_generators
- print '%s is "%s"' % (ENVVAR_GYP_GENERATORS, os.getenv(ENVVAR_GYP_GENERATORS))
+ print ('%s environment variable not set, using default, %s' %
+ (ENVVAR_GYP_GENERATORS, default_gyp_generators))
vs2013_runtime_dll_dirs = None
if os.getenv('CHROME_HEADLESS', '0') == '1':
@@ -148,9 +147,6 @@
# just turn that feature off.
os.environ['GYP_LINK_CONCURRENCY'] = '9001'
- print 'Updating projects from gyp files...'
- sys.stdout.flush()
-
if '--dry-run' in args:
args.remove('--dry-run')
print gyp_source_dir, ' '.join(args)