From cee02e6839c7f1e77c853c18138ebb445f1aa59a Mon Sep 17 00:00:00 2001 From: Thomas Applencourt Date: Mon, 8 Jun 2015 14:52:07 +0200 Subject: [PATCH] Fix zlib-flate --- setup_environment.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/setup_environment.py b/setup_environment.py index 525f4636..61195324 100755 --- a/setup_environment.py +++ b/setup_environment.py @@ -144,13 +144,15 @@ def check_python(): def check_avabiliy(binary): if binary == "zlib": - binary = "zlib-flate" + binary_name = "zlib-flate" + else: + binary_name = binary if binary == "python": check_python() try: - return check_output(["which", binary]) + return check_output(["which", binary_name]) except subprocess.CalledProcessError: default_path = d_info[binary].default_path if os.path.exists(default_path):