Commit 54c27ed7 authored by qsr's avatar qsr Committed by Commit bot

cython: Fix creation error when directory is created by a parallel process

R=engedy@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#294418}
parent e9975d5f
...@@ -29,7 +29,11 @@ def main(): ...@@ -29,7 +29,11 @@ def main():
opts = parser.parse_args() opts = parser.parse_args()
if not os.path.exists(opts.destination_dir): if not os.path.exists(opts.destination_dir):
os.makedirs(opts.destination_dir) try:
os.makedirs(opts.destination_dir)
except:
# Ignore errors on directory creation.
pass
for mapping in opts.mappings: for mapping in opts.mappings:
[module, library] = mapping.split('=') [module, library] = mapping.split('=')
......
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