diff options
| -rw-r--r-- | sources/pyside-tools/deploy_lib/commands.py | 2 | ||||
| -rw-r--r-- | sources/pyside-tools/deploy_lib/config.py | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/sources/pyside-tools/deploy_lib/commands.py b/sources/pyside-tools/deploy_lib/commands.py index a45ced374..8c017051d 100644 --- a/sources/pyside-tools/deploy_lib/commands.py +++ b/sources/pyside-tools/deploy_lib/commands.py @@ -42,7 +42,7 @@ def run_command(command, dry_run: bool, fetch_output: bool = False): @lru_cache -def run_qmlimportscanner(qml_files: list[Path], dry_run: bool): +def run_qmlimportscanner(qml_files: tuple[Path], dry_run: bool): """ Runs pyside6-qmlimportscanner to find all the imported qml modules in project_dir """ diff --git a/sources/pyside-tools/deploy_lib/config.py b/sources/pyside-tools/deploy_lib/config.py index 05806af75..e4d3d22be 100644 --- a/sources/pyside-tools/deploy_lib/config.py +++ b/sources/pyside-tools/deploy_lib/config.py @@ -318,7 +318,8 @@ class Config(BaseConfig): def _find_and_set_excluded_qml_plugins(self): if self.qml_files: - self.qml_modules = set(run_qmlimportscanner(qml_files=self.qml_files, + self.qml_modules = set(run_qmlimportscanner(qml_files=tuple(self.qml_files), + # tuple is needed to make it hashable dry_run=self.dry_run)) self.excluded_qml_plugins = EXCLUDED_QML_PLUGINS.difference(self.qml_modules) |
