MCPcopy Create free account
hub / github.com/dobin/SuperMega / check_deps

Function check_deps

utils.py:14–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12
13
14def check_deps():
15 cl = config.get("path_cl")
16 if shutil.which(cl) == None:
17 logger.error("Missing dependency: " + cl)
18 logger.error("See README for fix")
19 exit(1)
20
21 ml = config.get("path_ml64")
22 if shutil.which(ml) == None:
23 logger.error("Missing dependency: " + ml)
24 logger.error("See README for fix")
25 exit(1)
26
27
28def command_exists(cmd):

Callers 3

mainFunction · 0.90
web.pyFile · 0.90
mainFunction · 0.90

Calls 1

getMethod · 0.80

Tested by 1

mainFunction · 0.72