diff options
| author | Cristián Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2024-07-30 09:55:05 +0200 |
|---|---|---|
| committer | Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> | 2024-07-30 10:26:25 +0000 |
| commit | db0094c4653b70344d7261aef560cb29d501fc38 (patch) | |
| tree | dd05417cab827b7f4a1b54b79465479945932dd6 /sources/pyside-tools/deploy_lib | |
| parent | c4205dc4dc5e845b7d13d74d304e12bf60e38c46 (diff) | |
deploy: use shlex to split args
Pick-to: 6.7 6.5 6.2
Fixes: PYSIDE-2814
Change-Id: I88aa5ecf6a22808fe5efd2c52fd6675b153da936
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/pyside-tools/deploy_lib')
| -rw-r--r-- | sources/pyside-tools/deploy_lib/nuitka_helper.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sources/pyside-tools/deploy_lib/nuitka_helper.py b/sources/pyside-tools/deploy_lib/nuitka_helper.py index 06dba84f5..930f62f7d 100644 --- a/sources/pyside-tools/deploy_lib/nuitka_helper.py +++ b/sources/pyside-tools/deploy_lib/nuitka_helper.py @@ -7,6 +7,7 @@ from __future__ import annotations from __future__ import annotations import logging import os +import shlex import sys from pathlib import Path @@ -59,7 +60,8 @@ class Nuitka: dry_run: bool, permissions: list[str], mode: DesktopConfig.NuitkaMode): qt_plugins = [plugin for plugin in qt_plugins if plugin not in self.qt_plugins_to_ignore] - extra_args = extra_args.split() + + extra_args = shlex.split(extra_args) # macOS uses the --standalone option by default to create an app bundle if sys.platform == "darwin": |
