Use os.path.join in crypto_core_directory
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
This commit is contained in:
parent
8932404c45
commit
beec452e3c
1 changed files with 2 additions and 2 deletions
|
@ -26,9 +26,9 @@ def crypto_core_directory(root: Optional[str] = None) -> str:
|
||||||
if root is None:
|
if root is None:
|
||||||
root = guess_project_root()
|
root = guess_project_root()
|
||||||
if looks_like_tf_psa_crypto_root(root):
|
if looks_like_tf_psa_crypto_root(root):
|
||||||
return "core"
|
return os.path.join(root, "core")
|
||||||
elif looks_like_mbedtls_root(root):
|
elif looks_like_mbedtls_root(root):
|
||||||
return "library"
|
return os.path.join(root, "library")
|
||||||
else:
|
else:
|
||||||
raise Exception('Neither Mbed TLS nor TF-PSA-Crypto source tree found')
|
raise Exception('Neither Mbed TLS nor TF-PSA-Crypto source tree found')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue