Commit 76e47747 authored by thestig's avatar thestig Committed by Commit bot

Fix the ChromeVox generate_deps.py to create the parent dir for the output file.

BUG=417570
NOTREECHECKS=true
NOTRY=true
TBR=dmazzoni@chromium.org

Review URL: https://codereview.chromium.org/600333002

Cr-Commit-Position: refs/heads/master@{#296636}
parent c20d236b
...@@ -42,6 +42,11 @@ def main(): ...@@ -42,6 +42,11 @@ def main():
path_rewriter = PathRewriter(options.prefix_map) 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. # Write the generated deps file.
with open(options.output_file, 'w') as output: with open(options.output_file, 'w') as output:
for path in args: for path in args:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment