Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: bleeding_edge/dart/tools/gyp_dart.py

Issue 10837127: Make code follow the Python style guidelines (Closed) Base URL: http://dart.googlecode.com/svn/branches/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bleeding_edge/dart/tools/gyp_dart.py
===================================================================
--- bleeding_edge/dart/tools/gyp_dart.py (revision 10299)
+++ bleeding_edge/dart/tools/gyp_dart.py (working copy)
@@ -4,25 +4,29 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-# This script is wrapper for Dart that adds some support for how GYP
-# is invoked by Dart beyond what can be done in the gclient hooks.
+"""
+Invoke gyp to generate build files for building the Dart VM.
+"""
import os
import subprocess
import sys
-def Execute(args):
+def execute(args):
process = subprocess.Popen(args)
process.wait()
return process.returncode
-if __name__ == '__main__':
- args = ['python', "dart/third_party/gyp/gyp", "--depth=dart",
- "-Idart/tools/gyp/all.gypi", "dart/dart.gyp"]
+def main():
+ args = ['python', 'dart/third_party/gyp/gyp', '--depth=dart',
+ '-Idart/tools/gyp/all.gypi', 'dart/dart.gyp']
if sys.platform == 'win32':
# Generate Visual Studio 2008 compatible files by default.
if not os.environ.get('GYP_MSVS_VERSION'):
args.extend(['-G', 'msvs_version=2008'])
- sys.exit(Execute(args))
+ sys.exit(execute(args))
+
+if __name__ == '__main__':
+ main()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698