mirror of
https://github.com/godotengine/godot-cpp.git
synced 2026-01-01 05:48:37 +03:00
Merge pull request #1702 from zhmt/master
binding_generator.py: Don't error if directory already exists
This commit is contained in:
@@ -293,7 +293,7 @@ def _generate_bindings(api, api_filepath, use_template_get_node, bits="64", prec
|
||||
target_dir = Path(output_dir) / "gen"
|
||||
|
||||
shutil.rmtree(target_dir, ignore_errors=True)
|
||||
target_dir.mkdir(parents=True)
|
||||
target_dir.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
real_t = "double" if precision == "double" else "float"
|
||||
print("Built-in type config: " + real_t + "_" + bits)
|
||||
|
||||
Reference in New Issue
Block a user