Skip to content

Commit e589739

Browse files
Merge pull request #10685 from gilles-peskine-arm/maintainer-scripts-create-directory-4.1
Backport 4.1: Create a directory for maintainer-only Python scripts
2 parents b116c4d + 16541a9 commit e589739

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)