mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-10 23:35:37 +00:00
Allow running /somewhere/else/path/to/abi_check.py
Don't require abi_check.py to be the one in scripts/ under the current directory.
This commit is contained in:
parent
66b7edb108
commit
6aa32ccfae
|
@ -59,9 +59,7 @@ class AbiChecker(object):
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def check_repo_path():
|
def check_repo_path():
|
||||||
current_dir = os.path.realpath('.')
|
if not all(os.path.isdir(d) for d in ["include", "library", "tests"]):
|
||||||
root_dir = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
|
|
||||||
if current_dir != root_dir:
|
|
||||||
raise Exception("Must be run from Mbed TLS root")
|
raise Exception("Must be run from Mbed TLS root")
|
||||||
|
|
||||||
def _setup_logger(self):
|
def _setup_logger(self):
|
||||||
|
|
Loading…
Reference in a new issue