diff options
-rwxr-xr-x | scripts/build.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/build.py b/scripts/build.py index 4724ece02a..ec50a21b8e 100755 --- a/scripts/build.py +++ b/scripts/build.py @@ -44,7 +44,9 @@ def default_python3(): path_system = os.path.join('/usr', 'bin') if not common.is_windows_platform() else None path = os.environ.get('PYTHON3_PATH') or path_system postfix = '.exe' if common.is_windows_platform() else '' - return existing_path(os.path.join(path, 'python3' + postfix)) or existing_path(os.path.join(path, 'python' + postfix)) + return (path if not path + else (existing_path(os.path.join(path, 'python3' + postfix)) or + existing_path(os.path.join(path, 'python' + postfix)))) def get_arguments(): parser = argparse.ArgumentParser(description='Build Qt Creator for packaging') |