MCPcopy Index your code
hub / github.com/pre-commit/pre-commit / bin_on_path

Function bin_on_path

tests/parse_shebang_test.py:55–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53
54@contextlib.contextmanager
55def bin_on_path():
56 bindir = os.path.join(os.getcwd(), 'bin')
57 with envcontext((('PATH', (bindir, os.pathsep, Var('PATH'))),)):
58 yield
59
60
61def test_find_executable_path_added(in_tmpdir):

Calls 2

envcontextFunction · 0.90
VarClass · 0.90

Tested by

no test coverage detected