mbedtls icon indicating copy to clipboard operation
mbedtls copied to clipboard

Unify root directory identification in python scripts

Open gilles-peskine-arm opened this issue 2 years ago • 0 comments

We've accumulated at least three different methods to determine the mbedtls root directory in Python scripts: check_repo_path, chdir_to_root and guess_mbedtls_root. The goal of this task is to unify them, so that all scripts behave in a uniform manner when not run from the mbedtls root.

Note that for any solution involving chdir, we need to take care about script arguments that are file or directory relative paths: they should be interpreted relative to the current directory when the script is invoked, not relative to the mbedtls root.

gilles-peskine-arm avatar Sep 18 '22 19:09 gilles-peskine-arm