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 | 16799db | 2023-11-02 19:47:20 +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')) |
David Horstmann | 04f3433 | 2024-05-03 14:34:57 +0100 | [diff] [blame] | 18 | sys.path.append(os.path.join(os.path.dirname(__file__), |
| 19 | os.path.pardir, os.path.pardir, |
| 20 | 'framework', 'scripts')) |