We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 72acb66 + a76dcfe commit 594ff6dCopy full SHA for 594ff6d
source/ExportUnityPackage/export_unity_package.py
@@ -3354,7 +3354,11 @@ def main(unused_argv):
3354
if FLAGS.output_zip:
3355
output_dir = tempfile.mkdtemp()
3356
elif not os.path.exists(output_dir):
3357
- os.makedirs(output_dir)
+ try:
3358
+ os.makedirs(output_dir)
3359
+ except FileExistsError:
3360
+ # This can be racy with other build scripts.
3361
+ pass
3362
elif not os.path.isdir(output_dir):
3363
logging.error("output_dir %s is not a directory", output_dir)
3364
return 1
0 commit comments