MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / abs_path

Function abs_path

tensorflow/contrib/cmake/python_sanity_test.py:28–36  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

26
27
28def abs_path(path):
29 root = os.path.dirname(__file__)
30
31 for _ in range(3):
32 root = os.path.join(root, os.pardir)
33
34 path = os.path.join(root, path)
35 path = os.path.abspath(path)
36 return path
37
38
39def read_entries(test):

Callers 4

read_entriesFunction · 0.85
test_invalid_directoriesFunction · 0.85
test_missing_directoryFunction · 0.85
testMissingModulesMethod · 0.85

Calls 2

rangeFunction · 0.50
joinMethod · 0.45

Tested by

no test coverage detected