1
0
Fork 0
mirror of https://github.com/fastogt/pyfastogt synced 2025-03-09 23:38:55 +00:00

Check if which exist

This commit is contained in:
topilski 2017-07-05 03:23:39 -04:00
parent 3e62085b06
commit 06ac2ff352

View file

@ -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'])