mirror of
https://gitlab.com/kupfer/kupferbootstrap.git
synced 2025-02-23 05:35:44 -05:00
forgot utils.py
This commit is contained in:
parent
f424e9ce8f
commit
9b83bb16cd
1 changed files with 10 additions and 0 deletions
10
utils.py
Normal file
10
utils.py
Normal 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
|
Loading…
Add table
Reference in a new issue