From 03864ae351108f9281e1d6bc49631c99fa9a7878 Mon Sep 17 00:00:00 2001 From: Thomas Applencourt Date: Mon, 8 Jun 2015 14:52:07 +0200 Subject: [PATCH] Add Downloads and lib --- install/Downloads/.gitignore | 0 lib/.gitignore | 0 setup_environment.py | 6 ++++-- 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 install/Downloads/.gitignore create mode 100644 lib/.gitignore diff --git a/install/Downloads/.gitignore b/install/Downloads/.gitignore new file mode 100644 index 00000000..e69de29b diff --git a/lib/.gitignore b/lib/.gitignore new file mode 100644 index 00000000..e69de29b 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):