Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
16
def
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
24
def
nightly():
Callers
2
examples
Function · 0.85
format_
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected