MCPcopy Create free account
hub / github.com/dmlc/xgboost / chdir

Function chdir

ops/script/test_utils.py:27–33  ·  view source on GitHub ↗
(func: Callable[..., R])

Source from the content-addressed store, hash-verified

25 """Decorator for changing directory temporarily."""
26
27 def chdir(func: Callable[..., R]) -> Callable[..., R]:
28 @wraps(func)
29 def inner(*args: Any, **kwargs: Any) -> R:
30 with DirectoryExcursion(path):
31 return func(*args, **kwargs)
32
33 return inner
34
35 return chdir
36

Callers 2

build_wheelFunction · 0.85
build_sdistFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected