MCPcopy Create free account
hub / github.com/commandoperator/cmdop-sdk / _make_executable

Function _make_executable

python/src/cmdop/_locate.py:58–66  ·  view source on GitHub ↗
(path: str)

Source from the content-addressed store, hash-verified

56
57
58def _make_executable(path: str) -> None:
59 if sys.platform == "win32":
60 return
61 try:
62 mode = os.stat(path).st_mode
63 os.chmod(path, mode | stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH)
64 except OSError:
65 # Read-only store (nix, some CI caches) — the bit may already be set.
66 pass
67
68
69def locate_binary() -> str:

Callers 1

locate_binaryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected