| Total Complexity | 0 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | # -*- coding: utf-8 -*- |
||
| 2 | # context.py |
||
| 3 | import os |
||
| 4 | import sys |
||
| 5 | |||
| 6 | PACKAGE_PARENT = ".." |
||
| 7 | SCRIPT_DIR = os.path.dirname( |
||
| 8 | os.path.realpath(os.path.join(os.getcwd(), os.path.expanduser(__file__))) |
||
| 9 | ) # isort:skip # noqa # pylint: disable=wrong-import-position |
||
| 10 | sys.path.append( |
||
| 11 | os.path.normpath(os.path.join(SCRIPT_DIR, PACKAGE_PARENT)) |
||
| 12 | ) # isort: skip # noqa # pylint: disable=wrong-import-position |
||
| 13 | |||
| 14 | from personroles import ( # type: ignore # isort:skip # noqa # pylint: disable=unused-import, wrong-import-position |
||
| 15 | person, |
||
| 16 | ) # pylint: disable=unused-import # noqa |
||
| 17 | |||
| 18 | from personroles.resources import ( # type: ignore # isort:skip # noqa # pylint: disable=unused-import, wrong-import-position |
||
| 19 | constants, |
||
| 20 | helpers, |
||
| 21 | ) |
||
| 22 | from personroles import ( # type: ignore # isort:skip # noqa # pylint: disable=unused-import, wrong-import-position |
||
| 23 | mop_role, |
||
| 24 | politician_role, |
||
| 25 | ) |
||
| 26 |