From d934b7b7518f04cba09de19cba3fd5c1fca06d9f Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Thu, 16 Apr 2026 19:16:30 +0200 Subject: [PATCH] Add tf-psa-crypto/scripts/project_knowledge to Python load path Signed-off-by: Gilles Peskine --- .mypy.ini | 2 +- .pylintrc | 2 +- scripts/framework_scripts_path.py | 3 +++ tests/scripts/scripts_path.py | 3 +++ 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.mypy.ini b/.mypy.ini index f727cc20e7..23b4ada4ce 100644 --- a/.mypy.ini +++ b/.mypy.ini @@ -1,4 +1,4 @@ [mypy] -mypy_path = framework/scripts:scripts +mypy_path = framework/scripts:scripts:tf-psa-crypto/scripts/project_knowledge namespace_packages = True warn_unused_configs = True diff --git a/.pylintrc b/.pylintrc index 4a1b6e555f..721958b3c8 100644 --- a/.pylintrc +++ b/.pylintrc @@ -1,5 +1,5 @@ [MASTER] -init-hook='import sys; sys.path.append("scripts"); sys.path.append("framework/scripts")' +init-hook='import sys; sys.path += ["scripts", "framework/scripts", "tf-psa-crypto/scripts/project_knowledge"]' min-similarity-lines=10 [BASIC] diff --git a/scripts/framework_scripts_path.py b/scripts/framework_scripts_path.py index 4d4a440c23..88493f12a7 100644 --- a/scripts/framework_scripts_path.py +++ b/scripts/framework_scripts_path.py @@ -15,3 +15,6 @@ import sys sys.path.append(os.path.join(os.path.dirname(__file__), os.path.pardir, 'framework', 'scripts')) +sys.path.append(os.path.join(os.path.dirname(__file__), + os.path.pardir, + 'tf-psa-crypto', 'scripts', 'project_knowledge')) diff --git a/tests/scripts/scripts_path.py b/tests/scripts/scripts_path.py index ce2afcfc36..56c18ef9d3 100644 --- a/tests/scripts/scripts_path.py +++ b/tests/scripts/scripts_path.py @@ -18,3 +18,6 @@ sys.path.append(os.path.join(os.path.dirname(__file__), sys.path.append(os.path.join(os.path.dirname(__file__), os.path.pardir, os.path.pardir, 'framework', 'scripts')) +sys.path.append(os.path.join(os.path.dirname(__file__), + os.path.pardir, os.path.pardir, + 'tf-psa-crypto', 'scripts', 'project_knowledge'))