diff options
author | Christian Tismer <tismer@stackless.com> | 2020-10-27 16:29:14 +0100 |
---|---|---|
committer | Christian Tismer <tismer@stackless.com> | 2020-10-27 15:57:37 +0000 |
commit | 27158104a66bbb7176a903d80bc4a2a6718f3113 (patch) | |
tree | d9df4d7e89f84a26fef3e3dd4359d3c7ea5ff16c /build_scripts | |
parent | fe36e455be3572b3690426fe7e2d8276bb99e65d (diff) |
build_scripts: Fix the make_path error message
Change-Id: I32bfdfb728b39609ce4a63a6554ef0a3db58b122
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'build_scripts')
-rw-r--r-- | build_scripts/main.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/build_scripts/main.py b/build_scripts/main.py index 4c029be80..7fd0b8334 100644 --- a/build_scripts/main.py +++ b/build_scripts/main.py @@ -112,10 +112,11 @@ def get_make(platform_arch, build_type): """Retrieve the make command and CMake generator name""" (make_path, make_generator) = _get_make(platform_arch, build_type) if not os.path.isabs(make_path): - make_path = find_executable(make_path) - if not make_path or not os.path.exists(make_path): + found_path = find_executable(make_path) + if not found_path or not os.path.exists(found_path): raise DistutilsSetupError("You need the program '{}' on your system path to " "compile PySide2.".format(make_path)) + make_path = found_path return (make_path, make_generator) |