MCPcopy Create free account
hub / github.com/asweigart/PythonStdioGames / _executable_exists

Function _executable_exists

src/gamesbyexample/__init__.py:49–51  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

47
48
49def _executable_exists(name):
50 # Find out if an executable program named `name` is reachable:
51 return subprocess.call(['which', name], stdout=subprocess.PIPE, stderr=subprocess.PIPE) == 0
52
53
54def programSelect(*args):

Callers 3

runClickFunction · 0.85
viewSourceClickFunction · 0.85
openFolderClickFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected