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

Unified Diff: tools/v8_context_snapshot/run.py

Issue 2841443005: [Bindings] Create and use V8 context snapshots (Closed)
Patch Set: Rebase Created 3 years, 5 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 | « tools/v8_context_snapshot/OWNERS ('k') | tools/v8_context_snapshot/v8_context_snapshot_generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/v8_context_snapshot/run.py
diff --git a/tools/v8_context_snapshot/run.py b/tools/v8_context_snapshot/run.py
new file mode 100644
index 0000000000000000000000000000000000000000..a376b4c10e8a57ec6cd9c2d3de5e82c0d711da1c
--- /dev/null
+++ b/tools/v8_context_snapshot/run.py
@@ -0,0 +1,15 @@
+# Copyright 2017 The Chromium Authors. All rights reserved.
+# 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))
« no previous file with comments | « tools/v8_context_snapshot/OWNERS ('k') | tools/v8_context_snapshot/v8_context_snapshot_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698