Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2023-01-20 14:28:15 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2023-01-20 14:42:44 +0100
commitbf18e38f4416e7df3fd4ab1323d083cb9faf2997 (patch)
tree5f99d90654af58b2d8b4d096939c60812c1998ec /sources/pyside-tools/pyside_tool.py
parent8111875a7fe11b856bc2c6960d7b196607bc1f0c (diff)
pyside6-rcc: Fix --binary option
Do not add -g Python, then. Pick-to: 6.4 6.2 Fixes: PYSIDE-2199 Change-Id: I7d9a361d5a4e1a4c01d2aa9e0d25bdc4012cbb10 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'sources/pyside-tools/pyside_tool.py')
-rw-r--r--sources/pyside-tools/pyside_tool.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/sources/pyside-tools/pyside_tool.py b/sources/pyside-tools/pyside_tool.py
index 8e4d1aac7..e23921dd4 100644
--- a/sources/pyside-tools/pyside_tool.py
+++ b/sources/pyside-tools/pyside_tool.py
@@ -69,7 +69,12 @@ def uic():
def rcc():
- qt_tool_wrapper("rcc", ['-g', 'python'] + sys.argv[1:], True)
+ args = []
+ user_args = sys.argv[1:]
+ if "--binary" not in user_args:
+ args.extend(['-g', 'python'])
+ args.extend(user_args)
+ qt_tool_wrapper("rcc", args, True)
def qmltyperegistrar():