MCPcopy Create free account
hub / github.com/catboost/catboost / get_arcadia_root

Function get_arcadia_root

library/python/find_root/__init__.py:45–53  ·  view source on GitHub ↗

:param start_path: initial path for lookup Obtain Arcadia root or raise exception when root cannot be found.

(start_path=os.path.abspath(__file__))

Source from the content-addressed store, hash-verified

43
44
45def get_arcadia_root(start_path=os.path.abspath(__file__)):
46 """
47 :param start_path: initial path for lookup
48 Obtain Arcadia root or raise exception when root cannot be found.
49 """
50 arcadia_root = try_get_arcadia_root(start_path=start_path)
51 if not arcadia_root:
52 raise Exception("Cannot find Arcadia root")
53 return arcadia_root

Callers

nothing calls this directly

Calls 1

try_get_arcadia_rootFunction · 0.85

Tested by

no test coverage detected