From b8714df64c89788276b4cca0b359c3bfa6cd0ee8 Mon Sep 17 00:00:00 2001 From: Tom Barbette Date: Mon, 25 Nov 2024 21:31:38 +0000 Subject: [PATCH] Add NPF_VERSION constant --- npf/tests/test.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/npf/tests/test.py b/npf/tests/test.py index 76b6c27..edc6a10 100755 --- a/npf/tests/test.py +++ b/npf/tests/test.py @@ -23,6 +23,8 @@ from npf.tests.section import * from npf.osutils import get_valid_filename from npf.types.dataset import Run, Dataset +from npf.version import __version__ + from npf.types.units import parseBool from ..types.units import get_bool @@ -487,6 +489,7 @@ def update_constants(self, v_internals : dict, build : Build, full_test_folder : v_internals.update({ 'NPF_REPO':get_valid_filename(build.repo.name), 'NPF_REPO_PATH': rp, + 'NPF_VERSION': __version__, 'NPF_ROOT': '../', #Deprecated 'NPF_ROOT_PATH': os.path.relpath(npf.npf_root_path(), abs_test_folder), 'NPF_BUILD_PATH': bp,