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

Unified Diff: gin/run.py

Issue 2841443005: [Bindings] Create and use V8 context snapshots (Closed)
Patch Set: . Created 3 years, 8 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
Index: gin/run.py
diff --git a/gin/run.py b/gin/run.py
new file mode 100755
index 0000000000000000000000000000000000000000..ed529e04df34b4d941f0f15b41444ed881846ed2
--- /dev/null
+++ b/gin/run.py
@@ -0,0 +1,16 @@
+#!/usr/bin/env python
+# Copyright 2016 The Chromium Authors. All rights reserved.
Yuki 2017/04/28 13:48:27 nit: You may want to update the year to 2017, but
peria 2017/06/01 08:33:31 Done.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+"""This program wraps an arbitrary command since gn currently can only execute
+scripts."""
+
+import os
+import subprocess
+import sys
+
+args = sys.argv[1:]
+args[0] = os.path.abspath(args[0])
+
+sys.exit(subprocess.call(args))

Powered by Google App Engine
This is Rietveld 408576698