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

Function is_root

library/python/find_root/__init__.py:4–5  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

2
3
4def is_root(path):
5 return os.path.exists(os.path.join(path, ".arcadia.root")) or os.path.exists(os.path.join(path, 'devtools', 'ya', 'ya.conf.json'))
6
7
8def detect_root(path, detector=is_root):

Callers

nothing calls this directly

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected