Tools: Re-enable XML comparison mode Python API bindings generator.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user