Skip to content

Commit 16541a9

Browse files
Create a directory for maintainer-only Python scripts
This directory is currently excluded from `check-python-files.sh`, because we run it on the CI in an old Python version that doesn't support some of our new maintainer scripts. There are no such scripts in mbedtls for now (only in TF-PSA-Crypto), but be ready if we want to add some. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
1 parent 421f5d2 commit 16541a9

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
"""Add our Python library directories for maintainer scripts to the module search path.
2+
3+
Usage:
4+
5+
import maintainer_scripts_path # pylint: disable=unused-import
6+
"""
7+
8+
# Copyright The Mbed TLS Contributors
9+
# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
10+
#
11+
12+
import os
13+
import sys
14+
15+
sys.path.append(os.path.join(os.path.dirname(__file__),
16+
os.path.pardir, os.path.pardir,
17+
'framework', 'scripts'))
18+
sys.path.append(os.path.join(os.path.dirname(__file__),
19+
os.path.pardir, os.path.pardir,
20+
'framework', 'util'))

0 commit comments

Comments
 (0)