Files
hddfancontrol/bin_dep.py
T
2014-09-19 23:49:44 +02:00

8 lines
168 B
Python

import shutil
def check_bin_dependency(bins):
for bin in bins:
if shutil.which(bin) is None:
raise RuntimeError("Binary '%s' could not be found" % (bin))