Joey Armstrong | 0c517b5 | 2023-07-07 17:29:54 -0400 | [diff] [blame] | 1 | # -*- python -*- |
| 2 | '''Augment searchpath for import.''' |
| 3 | |
| 4 | ##-------------------## |
| 5 | ##---] IMPORTS [---## |
| 6 | ##-------------------## |
| 7 | import sys |
| 8 | from pathlib import Path |
| 9 | |
| 10 | ## --------------------------------------- |
| 11 | ## Artificial scope created for local vars |
| 12 | ## --------------------------------------- |
| 13 | # pylint: disable=invalid-name |
| 14 | # pylint: disable=using-constant-test |
| 15 | if True: |
| 16 | mod_path = Path('..').resolve().as_posix() |
| 17 | if mod_path not in sys.path: |
| 18 | sys.path.insert(0, mod_path) |
| 19 | |
| 20 | # [EOF] |