mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-16 08:42:50 +00:00
generate_test_keys: fix mypy issue for imported path
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
parent
7affeef725
commit
2b0242b6fc
@ -62,7 +62,6 @@ $PYTHON -m pylint scripts/mbedtls_dev/*.py scripts/*.py tests/scripts/*.py || {
|
|||||||
|
|
||||||
echo
|
echo
|
||||||
echo 'Running mypy ...'
|
echo 'Running mypy ...'
|
||||||
export MYPYPATH="../../scripts"
|
|
||||||
$PYTHON -m mypy scripts/*.py tests/scripts/*.py ||
|
$PYTHON -m mypy scripts/*.py tests/scripts/*.py ||
|
||||||
ret=1
|
ret=1
|
||||||
|
|
||||||
|
@ -12,6 +12,7 @@ import sys
|
|||||||
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__)) + "/"
|
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__)) + "/"
|
||||||
sys.path.append(SCRIPT_DIR + "../../scripts/")
|
sys.path.append(SCRIPT_DIR + "../../scripts/")
|
||||||
from mbedtls_dev.asymmetric_key_data import ASYMMETRIC_KEY_DATA
|
from mbedtls_dev.asymmetric_key_data import ASYMMETRIC_KEY_DATA
|
||||||
|
import scripts_path # pylint: disable=unused-import
|
||||||
|
|
||||||
OUTPUT_HEADER_FILE = SCRIPT_DIR + "../src/test_keys.h"
|
OUTPUT_HEADER_FILE = SCRIPT_DIR + "../src/test_keys.h"
|
||||||
BYTES_PER_LINE = 12
|
BYTES_PER_LINE = 12
|
||||||
|
Loading…
x
Reference in New Issue
Block a user