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

Function which

Scripts/Developer Base/Free Internet.py:80–87  ·  view source on GitHub ↗
(name: str)

Source from the content-addressed store, hash-verified

78
79
80def which(name: str) -> Optional[str]:
81 for p in os.environ.get("PATH", "").split(os.pathsep):
82 if not p:
83 continue
84 c = Path(p) / name
85 if c.exists() and os.access(str(c), os.X_OK):
86 return str(c)
87 return None
88
89
90def is_termux() -> bool:

Callers 6

ensure_python_depsFunction · 0.70
ensure_opensslFunction · 0.70
tor_binaryFunction · 0.70
install_tor_supportFunction · 0.70
browser_update_toolsFunction · 0.70
open_in_browserFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected