Trying to run nonexisting programs can return many different types of exception, so catch everything. Closes #299.

pull/297/head
Jussi Pakkanen 9 years ago
parent f16986e31b
commit 4286bdb86f
  1. 2
      mesonlib.py

@ -154,7 +154,7 @@ def default_libdir():
try:
archpath = subprocess.check_output(['dpkg-architecture', '-qDEB_HOST_MULTIARCH']).decode().strip()
return 'lib/' + archpath
except FileNotFoundError:
except:
pass
if os.path.isdir('/usr/lib64'):
return 'lib64'

Loading…
Cancel
Save