Skip to content

Commit

Permalink
Add NPF_VERSION constant
Browse files Browse the repository at this point in the history
  • Loading branch information
tbarbette committed Nov 25, 2024
1 parent 097611a commit b8714df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions npf/tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit b8714df

Please sign in to comment.