Tools: Re-enable XML comparison mode Python API bindings generator.

This commit is contained in:
tritao
2025-03-16 11:20:11 +00:00
committed by Chris Hennes
parent e2ea02b5a5
commit 09918fac13
2 changed files with 3 additions and 1 deletions

View File

@@ -59,6 +59,8 @@ def generate(filename, outputPath):
Export.export = GenerateModelInst.PythonExport[0]
Export.is_python = filename.endswith(".pyi")
Export.Generate()
if Export.is_python:
Export.Compare()
print("Done generating: " + GenerateModelInst.PythonExport[0].Name)

View File

@@ -331,7 +331,7 @@ def _get_module_from_path(path: str) -> str:
# 2. Attempt to find "src" in the path components.
try:
idx_src = parts.index("src")
idx_src = len(parts) - 1 - list(reversed(parts)).index("src")
except ValueError:
# If "src" is not found, we cannot determine the module name.
return None