diff options
| author | 2026-04-24 00:58:00 +0100 | |
|---|---|---|
| committer | 2026-04-27 17:26:08 +0100 | |
| commit | 3ced078798e3ac3c0aeded37fc4cf9ac5a5ae3a2 (patch) | |
| tree | 59295a9a81865db1b1c51d29291840cc112be2a1 /src/python/module.py | |
| parent | Switch 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.py | 8 |
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. |
