From 27158104a66bbb7176a903d80bc4a2a6718f3113 Mon Sep 17 00:00:00 2001 From: Christian Tismer Date: Tue, 27 Oct 2020 16:29:14 +0100 Subject: build_scripts: Fix the make_path error message Change-Id: I32bfdfb728b39609ce4a63a6554ef0a3db58b122 Reviewed-by: Friedemann Kleint --- build_scripts/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'build_scripts') 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) -- cgit v1.2.3