forgot utils.py

This commit is contained in:
InsanePrawn 2021-09-30 01:00:28 +02:00
parent f424e9ce8f
commit 9b83bb16cd

10
utils.py Normal file
View file

@ -0,0 +1,10 @@
from shutil import which
def programs_available(programs) -> bool:
if type(programs) is str:
programs = [programs]
for program in programs:
if not which(program):
return False
return True