aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Jenssen <tim.jenssen@qt.io>2019-05-02 18:12:50 +0200
committerTim Jenssen <tim.jenssen@qt.io>2019-05-02 16:13:35 +0000
commitcbc711a6f851902ad031c868717382a39d30f497 (patch)
treeb4234f9dff84ddd0e6a8beea3383c1ce4e18ec74
parent03faa3e91d62626dfd2fb437782dbdfbe861a49d (diff)
use the pathes
Change-Id: I735c50f52d2f38470d0920f2218e1fba67931427 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
-rw-r--r--packaging-tools/build_wrapper.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/packaging-tools/build_wrapper.py b/packaging-tools/build_wrapper.py
index 022c250fd..648219cc5 100644
--- a/packaging-tools/build_wrapper.py
+++ b/packaging-tools/build_wrapper.py
@@ -537,7 +537,8 @@ def get_qtcreator_version(path_to_qtcreator_src, optionDict):
possible_version_locations = [optionDict.get('IDE_BRANDING_PRI'), # optional
os.path.join(path_to_qtcreator_src, 'qtcreator_ide_branding.pri'), # used since QtCreator 4.10
os.path.join(path_to_qtcreator_src, 'qtcreator.pri')]# old path till 4.9, can be removed in the future
- with open(os.path.join(path_to_qtcreator_src, 'qtcreator.pri'), 'r') as f:
+ for path in possible_version_locations:
+ with open(path, 'r') as f:
for line in f:
match = expr.match(line)
if match: