Gilles Peskine | 45d350b | 2020-12-10 23:11:59 +0100 | [diff] [blame] | 1 | """Add our Python library directory to the module search path. |
| 2 | |
| 3 | Usage: |
| 4 | |
| 5 | import scripts_path # pylint: disable=unused-import |
| 6 | """ |
| 7 | |
| 8 | # Copyright The Mbed TLS Contributors |
Dave Rodgman | 7ff7965 | 2023-11-03 12:04:52 +0000 | [diff] [blame] | 9 | # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later |
Gilles Peskine | 45d350b | 2020-12-10 23:11:59 +0100 | [diff] [blame] | 10 | # |
Gilles Peskine | 45d350b | 2020-12-10 23:11:59 +0100 | [diff] [blame] | 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 | 'scripts')) |