diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-12-15 11:02:37 +0100 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-12-15 13:26:36 +0100 |
| commit | a97ce27f93abdafc023d1ca17b66170e6202039c (patch) | |
| tree | 608527e49c62d5b30fce395fd5927b565eaa0721 /sources/pyside-tools/project/project_data.py | |
| parent | 3f55d2fdef9e86b7588620dbc2caf1d8b82e2d4e (diff) | |
Project Tool: Fix QML issues on Windows
- Adapt the glob pattern for metatypes to Windows (no build indicator)
- Fix qtpaths6 evaluation (split on ':' only once to prevent
it from splitting on drive letters)
Pick-to: 6.4
Change-Id: I234ce2d462cca67ed0b142edb3a6e8420e4cb125
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside-tools/project/project_data.py')
| -rw-r--r-- | sources/pyside-tools/project/project_data.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sources/pyside-tools/project/project_data.py b/sources/pyside-tools/project/project_data.py index 991e5b505..05235fefc 100644 --- a/sources/pyside-tools/project/project_data.py +++ b/sources/pyside-tools/project/project_data.py @@ -115,7 +115,10 @@ class QmlProjectData: meta_dir = qt_metatype_json_dir() for mod in self._qt_modules: mod_id = mod[2:].lower() - pattern = f"qt6{mod_id}_*{METATYPES_JSON_SUFFIX}" + pattern = f"qt6{mod_id}_*" + if sys.platform != "win32": + pattern += "_" # qt6core_debug_metatypes.json (Linux) + pattern += METATYPES_JSON_SUFFIX for f in meta_dir.glob(pattern): foreign_files.append(os.fspath(f)) break |
