From 3327ba8447aa5c7f28b565973839ab69d21738b9 Mon Sep 17 00:00:00 2001 From: Doug Ransom Date: Mon, 23 Sep 2024 09:49:04 -0700 Subject: [PATCH] better way of specifying package name --- src/natlinkcore/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/natlinkcore/__init__.py b/src/natlinkcore/__init__.py index 0574eb2..cad504e 100644 --- a/src/natlinkcore/__init__.py +++ b/src/natlinkcore/__init__.py @@ -3,7 +3,7 @@ import importlib.metadata -__version__ = importlib.metadata.version('natlinkcore') #version set in pyproject.toml now. +__version__ = importlib.metadata.version(__package__) #version set in pyproject.toml now. #pylint:disable= from pathlib import Path