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

Unified Diff: tools/dom/scripts/dartdomgenerator.py

Issue 2981193002: Fix the go.sh script for a completely new repo. (Closed)
Patch Set: 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/dartdomgenerator.py
diff --git a/tools/dom/scripts/dartdomgenerator.py b/tools/dom/scripts/dartdomgenerator.py
index adae8e01482496fbbeefd8ba5e6be0609d8f9952..a68bdca22dc1937c7f1bef6174f9e358629a770a 100755
--- a/tools/dom/scripts/dartdomgenerator.py
+++ b/tools/dom/scripts/dartdomgenerator.py
@@ -224,6 +224,8 @@ def GenerateSingleFile(library_path, output_dir, generated_output_dir=None):
copy_dart_script = os.path.relpath('../../copy_dart.py',
library_dir)
output_dir = os.path.relpath(output_dir, library_dir)
+ if not os.path.exists(library_dir):
+ os.makedirs(library_dir)
command = ' '.join(['cd', library_dir, ';',
copy_dart_script, output_dir, library_filename])
subprocess.call([command], shell=True)
@@ -303,7 +305,7 @@ def main():
systems = options.systems.split(',')
output_dir = options.output_dir or os.path.join(
- current_dir, '..', '..', utils.GetBuildDir(utils.GuessOS()),
+ current_dir, '..', '..', '..', utils.GetBuildDir(utils.GuessOS()),
'generated')
dart2js_output_dir = None
« 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