MCPcopy Index your code
hub / github.com/PyO3/rust-numpy / can_run

Function can_run

x.py:16–21  ·  view source on GitHub ↗
(*args)

Source from the content-addressed store, hash-verified

14
15
16def can_run(*args):
17 try:
18 subprocess.run([*args], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
19 return True
20 except OSError:
21 return False
22
23
24def nightly():

Callers 2

examplesFunction · 0.85
format_Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected