mbedtls/scripts/mbedtls_dev
Gilles Peskine 15997bd389 Use relative imports when importing other modules in the same directory
We were using absolute imports under the assumption that the /scripts
directory is in the path. This worked in normal use because every one of our
Python scripts either were in the /scripts directory, or added the /scripts
directory to the module search path in order to reference mbedtls_dev.
However, this broke things like
```
python3 -m unittest scripts/mbedtls_dev/psa_storage.py
```

Fix this by using relative imports.

Relative imports are only supposed to be used inside a package (Python
doesn't complain, but Pylint does). So make /scripts/mbedtls_dev a proper
package by creating __init__.py.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2022-09-17 10:38:58 +02:00
..
__init__.py Use relative imports when importing other modules in the same directory 2022-09-17 10:38:58 +02:00
asymmetric_key_data.py
build_tree.py fix build fail 2021-12-10 14:23:37 +08:00
c_build_helper.py
crypto_knowledge.py Use relative imports when importing other modules in the same directory 2022-09-17 10:38:58 +02:00
macro_collector.py Fix invalid argument enumeration when there are >=3 arguments 2022-04-15 11:10:14 +02:00
psa_storage.py Use relative imports when importing other modules in the same directory 2022-09-17 10:38:58 +02:00
test_case.py Use relative imports when importing other modules in the same directory 2022-09-17 10:38:58 +02:00
test_data_generation.py Use relative imports when importing other modules in the same directory 2022-09-17 10:38:58 +02:00
typing_util.py