context   A
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 0
eloc 16
dl 0
loc 25
rs 10
c 0
b 0
f 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