From 3ced078798e3ac3c0aeded37fc4cf9ac5a5ae3a2 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 24 Apr 2026 00:58:00 +0100 Subject: Add the common Python module to deduplicate some code. --- src/python/module.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/python/module.py') diff --git a/src/python/module.py b/src/python/module.py index f04c60c68..65c54f4bb 100644 --- a/src/python/module.py +++ b/src/python/module.py @@ -19,9 +19,11 @@ import pathlib -DIR = pathlib.Path(__file__).resolve().parents[2] / "modules" -CONTRIB_DIR = DIR / "contrib" -EXTRA_DIR = DIR / "extra" +from . import common + +DIR = common.ROOT / "modules" +CONTRIB_DIR = DIR / "contrib" +EXTRA_DIR = DIR / "extra" # Converts a module name to a file name. -- cgit v1.3.1-10-gc9f91