aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside-tools/project_lib/pyproject_toml.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside-tools/project_lib/pyproject_toml.py')
-rw-r--r--sources/pyside-tools/project_lib/pyproject_toml.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/sources/pyside-tools/project_lib/pyproject_toml.py b/sources/pyside-tools/project_lib/pyproject_toml.py
index 6da7b455e..bc5a0f69d 100644
--- a/sources/pyside-tools/project_lib/pyproject_toml.py
+++ b/sources/pyside-tools/project_lib/pyproject_toml.py
@@ -91,11 +91,18 @@ def parse_pyproject_toml(pyproject_toml_file: Path) -> PyProjectParseResult:
result.errors.append(str(e))
return result
- pyside_table = root_table.get("tool", {}).get("pyside6-project", {})
+ tool_entry = root_table.get("tool", {})
+ pyside_table = tool_entry.get("pyside6-project", {})
if not pyside_table:
result.errors.append("Missing [tool.pyside6-project] table")
return result
+ if rcc_table := tool_entry.get("pyside6-rcc", {}):
+ result.rcc_options = rcc_table.get("options", [])
+
+ if uic_table := tool_entry.get("pyside6-uic", {}):
+ result.uic_options = uic_table.get("options", [])
+
files = pyside_table.get("files", [])
if not isinstance(files, list):
result.errors.append("Missing or invalid files list")