forked from quisquous/cactbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefinitions.py
38 lines (29 loc) · 990 Bytes
/
definitions.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
"""Standard definitions shared across the Cactbot Python tests."""
from enum import Enum, auto
from pathlib import Path
# ./../../
PROJECT_ROOT_DIRECTORY = Path(__file__).parent.parent
# Filesystem variables
DATA_DIRECTORY = "data"
TEST_DIRECTORY = "test"
UI_DIRECTORY = "ui"
MANIFEST_FILENAME = "manifest.txt"
class CactbotModule(Enum):
"""Enumeration of Cactbot modules.
Enumeration of Cactbot modules where the value is arbitrary and automatically assigned. Enum
elements can be listed in alphabetical order, as they would appear in a filesystem.
"""
def directory(self):
"""Get the module's base directory.
Returns:
The module's base directory as a pathlib.Path object.
"""
return Path(PROJECT_ROOT_DIRECTORY, UI_DIRECTORY, str(self.name).lower())
DPS = auto()
EUREKA = auto()
FISHER = auto()
JOBS = auto()
OOPSYRAIDSY = auto()
PULLCOUNTER = auto()
RAIDBOSS = auto()
TEST = auto()