Fix some documentation in build_tree.py

Signed-off-by: Ronald Cron <[email protected]>
This commit is contained in:
Ronald Cron
2025-03-13 15:48:41 +01:00
parent 426127bdf6
commit 1bbe7ad9ca
+4 -4
View File
@@ -73,10 +73,10 @@ def check_repo_path():
raise Exception("This script must be run from Mbed TLS root")
def chdir_to_root() -> None:
"""Detect the root of the Mbed TLS source tree and change to it.
"""Detect the root of the Mbed TLS or TF-PSA-Crypto source tree and change to it.
The current directory must be up to two levels deep inside an Mbed TLS
source tree.
The current directory must be up to two levels deep inside an Mbed TLS or
TF-PSA-Crypto source tree.
"""
for d in [os.path.curdir,
os.path.pardir,
@@ -84,7 +84,7 @@ def chdir_to_root() -> None:
if looks_like_root(d):
os.chdir(d)
return
raise Exception('Mbed TLS source tree not found')
raise Exception('Mbed TLS or TF-PSA-Crypto source tree not found')
def guess_project_root():
"""Guess project source code directory.