Lines Matching refs:path
12 def looks_like_tf_psa_crypto_root(path: str) -> bool:
14 return all(os.path.isdir(os.path.join(path, subdir))
17 def looks_like_mbedtls_root(path: str) -> bool:
19 return all(os.path.isdir(os.path.join(path, subdir))
22 def looks_like_root(path: str) -> bool:
23 return looks_like_tf_psa_crypto_root(path) or looks_like_mbedtls_root(path)
27 Return the path of the directory containing the PSA crypto core
30 Returns either the full path or relative path depending on the
38 return os.path.join(root, "core")
42 return os.path.join(root, "library")
61 if not all(os.path.isdir(d) for d in ["include", "library", "tests"]):
70 for d in [os.path.curdir,
71 os.path.pardir,
72 os.path.join(os.path.pardir, os.path.pardir)]:
85 path = os.path.dirname(frame.filename)
86 for d in ['.', os.path.pardir] \
87 + [os.path.join(*([os.path.pardir]*i)) for i in range(2, 10)]:
88 d = os.path.abspath(os.path.join(path, d))