MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / command_exists

Function command_exists

Scripts/Developer Base/Devices Finder.py:120–125  ·  view source on GitHub ↗
(command)

Source from the content-addressed store, hash-verified

118
119
120def command_exists(command):
121 try:
122 result = subprocess.run([command, "--version"], capture_output=True, text=True)
123 return result.returncode == 0
124 except Exception:
125 return False
126
127
128

Callers 1

check_dependenciesFunction · 0.70

Calls 1

runMethod · 0.45

Tested by

no test coverage detected