From 06ac2ff3523c20c0cbd2aaf0a76be8fc0380400d Mon Sep 17 00:00:00 2001 From: topilski Date: Wed, 5 Jul 2017 03:23:39 -0400 Subject: [PATCH] Check if which exist --- base/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/utils.py b/base/utils.py index 7037bc4..3a00880 100644 --- a/base/utils.py +++ b/base/utils.py @@ -113,7 +113,7 @@ def build_command_configure(compiler_flags: CompileInfo, source_dir_path, prefix subprocess.call(compile_cmd) subprocess.call(['make', '-j2']) subprocess.call(['make', 'install']) - if shutil.which('ldconfig'): + if hasattr(shutil, 'which') and shutil.which('ldconfig'): subprocess.call(['ldconfig'])