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

Unified Diff: chrome/browser/resources/chromeos/chromevox/tools/generate_deps.py

Issue 600333002: Fix the ChromeVox generate_deps.py to create the parent dir for the output file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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: chrome/browser/resources/chromeos/chromevox/tools/generate_deps.py
diff --git a/chrome/browser/resources/chromeos/chromevox/tools/generate_deps.py b/chrome/browser/resources/chromeos/chromevox/tools/generate_deps.py
index 42cd6134ced89c381ffa81ffd09f686fd01046cb..4607b3962a70fb48c75c469f99fd10bf05a48b52 100755
--- a/chrome/browser/resources/chromeos/chromevox/tools/generate_deps.py
+++ b/chrome/browser/resources/chromeos/chromevox/tools/generate_deps.py
@@ -42,6 +42,11 @@ def main():
path_rewriter = PathRewriter(options.prefix_map)
+ # Create the generated deps file's parent directory.
+ output_dir = os.path.dirname(os.path.abspath(options.output_file))
+ if not os.path.exists(output_dir):
+ os.makedirs(output_dir)
+
# Write the generated deps file.
with open(options.output_file, 'w') as output:
for path in args:
« 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