Skip to content

Commit d79959c

Browse files
zhmtNaros
andcommitted
binding_generator.py: Don't error if directory already exists
It should be ok when folders exist. Exception shouldn't be thrown. Update binding_generator.py It should be ok when folds exist. It will fail to build without this patch, in vs code on windows with compiler ( visual studio community 2022 amd 64) . Co-Authored-By: Chris Cranford <[email protected]>
1 parent ee2a895 commit d79959c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

binding_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ def _generate_bindings(api, use_template_get_node, bits="64", precision="single"
285285
target_dir = Path(output_dir) / "gen"
286286

287287
shutil.rmtree(target_dir, ignore_errors=True)
288-
target_dir.mkdir(parents=True)
288+
target_dir.mkdir(parents=True, exist_ok=True)
289289

290290
real_t = "double" if precision == "double" else "float"
291291
print("Built-in type config: " + real_t + "_" + bits)

0 commit comments

Comments
 (0)