diff options
| author | Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> | 2024-03-06 15:56:45 +0100 |
|---|---|---|
| committer | Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> | 2024-09-02 11:07:57 +0200 |
| commit | 66986fdcd4b2fe24704d0710cc60649753f1d8a2 (patch) | |
| tree | d2ba730bd461b073102526e8e82d8168dca54be6 /sources/pyside-tools/deploy.py | |
| parent | fbbe8026b9cd4256812d41ffcd859e8523f8281c (diff) | |
Desktop Deployment: Unify API design of Config class
- Implements a comment suggestion from 11064d4dcd688db1d54d7273ad700761fabe3f50
- _find_and_set_** methods renamed to _find_** methods. They now
return the required property.
- Property setters now update the value in the config class as well.
This also aligns with the design of certain other properties.
- Adjust tests.
Task-number: PYSIDE-1612
Pick-to: 6.7
Change-Id: I135d0a64928381a863cbf7235240efc45421324a
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside-tools/deploy.py')
| -rw-r--r-- | sources/pyside-tools/deploy.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sources/pyside-tools/deploy.py b/sources/pyside-tools/deploy.py index c93d90584..a406aeac4 100644 --- a/sources/pyside-tools/deploy.py +++ b/sources/pyside-tools/deploy.py @@ -103,11 +103,7 @@ def main(main_file: Path = None, name: str = None, config_file: Path = None, ini config = DesktopConfig(config_file=config_file, source_file=main_file, python_exe=python.exe, dry_run=dry_run, existing_config_file=config_file_exists, - extra_ignore_dirs=extra_ignore_dirs, mode=mode) - - # set application name - if name: - config.title = name + extra_ignore_dirs=extra_ignore_dirs, mode=mode, name=name) cleanup(config=config) @@ -127,7 +123,8 @@ def main(main_file: Path = None, name: str = None, config_file: Path = None, ini config.update_config() if config.qml_files: - logging.info(f"[DEPLOY] Included QML files: {config.qml_files}") + logging.info("[DEPLOY] Included QML files: " + f"{[str(qml_file) for qml_file in config.qml_files]}") if init: # config file created above. Exiting. |
