Merge in RR/pyinfra from config_refactoring to master
Squashed commit of the following:
commit 22636e5e5df1148004598a268348673537454e36
Author: Matthias Bisping <matthias.bisping@iqser.com>
Date: Fri Feb 25 14:57:57 2022 +0100
applied black
commit 5d244c3f67fb9d6bd7cb78cbe92fc8035b6cf9b7
Author: Matthias Bisping <matthias.bisping@iqser.com>
Date: Fri Feb 25 14:56:22 2022 +0100
restructured config and made correspondig changes in referencing code
commit 4dc64124e16e0f490e6785324b88751ee32dc49c
Author: Matthias Bisping <matthias.bisping@iqser.com>
Date: Fri Feb 25 13:12:41 2022 +0100
test config restructuring
commit b0bd9aebdf58f3f4f43a1d4cdaf451bd6036d135
Author: Matthias Bisping <matthias.bisping@iqser.com>
Date: Fri Feb 25 13:10:35 2022 +0100
factored out test section of config
15 lines
307 B
Python
15 lines
307 B
Python
"""Defines constant paths relative to the module root path."""
|
|
|
|
from pathlib import Path
|
|
|
|
|
|
MODULE_DIR = Path(__file__).resolve().parents[0]
|
|
|
|
PACKAGE_ROOT_DIR = MODULE_DIR.parents[0]
|
|
|
|
TEST_DIR = MODULE_DIR / "test"
|
|
|
|
CONFIG_FILE = PACKAGE_ROOT_DIR / "config.yaml"
|
|
|
|
TEST_CONFIG_FILE = TEST_DIR / "config.yaml"
|