Part: Remove XML binding files.

This PR removes the Part XML API bindings files now that we have
equivalent Python binding files.
This commit is contained in:
Joao Matos
2025-03-25 16:25:47 +00:00
committed by Benjamin Nauck
parent 6083315b04
commit faabc3d7d6
104 changed files with 109 additions and 10907 deletions

View File

@@ -37,7 +37,13 @@ def compareFiles(file1, file2):
class TemplateClassPyExport(template.ModelTemplate):
# TODO: This is temporary, once all XML files are migrated, this can be removed.
def getPath(self, path):
if self.is_python and not self.export.ModuleName in ["Base", "App", "Gui", "PartDesign"]:
if self.is_python and not self.export.ModuleName in [
"Base",
"App",
"Gui",
"Part",
"PartDesign",
]:
root, ext = os.path.splitext(path)
return f"{root}_{ext}"
return path