Codegen: make codegen work on windows

This commit is contained in:
Paolo Tranquilli
2024-05-27 16:05:38 +02:00
parent 2bec696114
commit 6bbad22672

View File

@@ -33,7 +33,7 @@ def _get_table(match):
name=match["table"],
columns=[_get_column(f) for f in _Re.field.finditer(match["tablebody"])],
keyset=keyset,
dir=pathlib.PosixPath(match["tabledir"]) if match["tabledir"] else None,
dir=pathlib.PurePosixPath(match["tabledir"]) if match["tabledir"] else None,
)