add os detect function

This commit is contained in:
Nachuan Tang
2023-02-15 23:59:16 -05:00
parent a9efbe46f6
commit dd7c1d8903
4 changed files with 23 additions and 4 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ def exist(app):
def program_must_exist(app):
if not exist(app):
fatal_error(app, "must be installed to continue")
fatal_error("must be installed to continue")
def fatal_error(msg):
print('Error:', msg)