Skip to content

Commit af2c0ac

Browse files
committed
fix posix path
1 parent 0064cd4 commit af2c0ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

binding_generator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1574,6 +1574,7 @@ def generate_compat_includes(godot_repo: Path, output_dir: Path):
15741574
file_types_mapping = match_headers(file_types_mapping_godot_cpp_gen, file_types_mapping_godot)
15751575

15761576
for file_godot_cpp_name, file_godot_names in file_types_mapping.items():
1577+
file_godot_cpp_name = Path(file_godot_cpp_name).as_posix()
15771578
header_filepath = file_godot_cpp_name.replace("godot_cpp", "godot_compat")
15781579
if "gen/include" not in header_filepath:
15791580
header_filepath = header_filepath.replace("include/", "gen/include/")
@@ -1593,7 +1594,7 @@ def generate_compat_includes(godot_repo: Path, output_dir: Path):
15931594
result.append(f"#else")
15941595
file_godot_cpp_name = file_godot_cpp_name.replace("gen/include/", "")
15951596
file_godot_cpp_name = file_godot_cpp_name.replace("include/", "")
1596-
result.append(f"#include <{Path(file_godot_cpp_name).as_posix()}>")
1597+
result.append(f"#include <{file_godot_cpp_name}>")
15971598
result.append(f"using namespace godot;")
15981599
result.append(f"#endif")
15991600
result.append("")

0 commit comments

Comments
 (0)