diff --git a/tools/ticked_file_enforcement/ticked_file_enforcement.py b/tools/ticked_file_enforcement/ticked_file_enforcement.py index e9fd3e270bd8..8384be117c15 100644 --- a/tools/ticked_file_enforcement/ticked_file_enforcement.py +++ b/tools/ticked_file_enforcement/ticked_file_enforcement.py @@ -348,7 +348,8 @@ def compare_paths(a: pathlib.Path, b: pathlib.Path): result_string.write(pre_include_text) result_string.write("// BEGIN_INCLUDE\n") for include in sorted_includes: - print(f'#include "{include}"', file=result_string) + string_include = pathlib.PureWindowsPath(include) + print(f'#include "{string_include}"', file=result_string) result_string.write("// END_INCLUDE\n") result_string.write(post_include_text)