aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside-tools/deploy_lib/__init__.py
diff options
context:
space:
mode:
authorShyamnath Premnadh <Shyamnath.Premnadh@qt.io>2024-09-20 17:00:39 +0200
committerShyamnath Premnadh <Shyamnath.Premnadh@qt.io>2024-10-07 13:54:03 +0200
commit1e5fe140b485209a30d7dd38b3334440c58cbb05 (patch)
tree43511980e289c57b6208ad0bf9b0c09ea58a483e /sources/pyside-tools/deploy_lib/__init__.py
parent9a10caa1e22773ce7563f82680c67596293178e4 (diff)
Deployment: Support Design Studio projects
- new class 'DesignStudio' to handle Design Studio projects. - Currently uses a way of monkey patching to override the 'main.py' to use 'main_patch.py' which has the same content but with 'app_dir' set to the parent of `main.py``. The reason for doing this is that Nuitka requires the `main.py` to be in the same directory as other resources required for the project. Once the corresponding patch, to alternate between evaluating 'app_dir' based on whether the application is deployed or called through the Python interpreter, is merged then this temporary fix of creating 'main_patch.py' can be removed. - Add tests. Pick-to: 6.7 Change-Id: I79e6572bdbbf4576fbdd9039a4922997a22139f8 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/pyside-tools/deploy_lib/__init__.py')
-rw-r--r--sources/pyside-tools/deploy_lib/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/sources/pyside-tools/deploy_lib/__init__.py b/sources/pyside-tools/deploy_lib/__init__.py
index 98179ecf0..3417f7a29 100644
--- a/sources/pyside-tools/deploy_lib/__init__.py
+++ b/sources/pyside-tools/deploy_lib/__init__.py
@@ -54,6 +54,7 @@ def get_all_pyside_modules():
return [module[2:] for module in PySide6.__all__]
+from .design_studio import DesignStudio
from .commands import run_command, run_qmlimportscanner
from .dependency_util import find_pyside_modules, find_permission_categories, QtDependencyReader
from .nuitka_helper import Nuitka