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

Unified Diff: frog/scripts/bootstrap/frogsh_bootstrap_wrapper.py

Issue 8773005: Get rid of guessing the VM location in frog.py. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 9 years, 1 month 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: frog/scripts/bootstrap/frogsh_bootstrap_wrapper.py
===================================================================
--- frog/scripts/bootstrap/frogsh_bootstrap_wrapper.py (revision 1968)
+++ frog/scripts/bootstrap/frogsh_bootstrap_wrapper.py (working copy)
@@ -12,14 +12,14 @@
import frog
def main(args):
- for arg in args:
- index = arg.find('--out=')
- if index != -1:
- js_out = arg[6:len(arg)];
+ product_dir = args[1]
+ js_out = os.path.join(product_dir, 'frog', 'bin', 'frogsh')
+ vm = os.path.join(product_dir, 'dart')
+ frog_args = ['frog.py', '--vm=' + vm, '--', '--out=' + js_out, 'frog.dart']
# TODO(ngeoffray): Compile frogsh without checks integrated.
# if js_out.find('Release') != -1:
- exit_code = frog.main(args)
+ exit_code = frog.main(frog_args)
if exit_code:
return exit_code
« frog/frog.py ('K') | « frog/scripts/bootstrap/frog_wrapper.py ('k') | tools/build.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698