aboutsummaryrefslogtreecommitdiff
path: root/src/python/module.py
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-04-24 00:58:00 +0100
committerGravatar Sadie Powell2026-04-27 17:26:08 +0100
commit3ced078798e3ac3c0aeded37fc4cf9ac5a5ae3a2 (patch)
tree59295a9a81865db1b1c51d29291840cc112be2a1 /src/python/module.py
parentSwitch the build system to CMake. (diff)
Add the common Python module to deduplicate some code.
Diffstat (limited to 'src/python/module.py')
-rw-r--r--src/python/module.py8
1 files changed, 5 insertions, 3 deletions
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.