Skip to content

Commit 11eeffc

Browse files
committed
fix to make sure it works with package install
1 parent 04f09e0 commit 11eeffc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tobac/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,5 @@
8484
import importlib.metadata
8585

8686
# Set version number
87-
__version__ = importlib.metadata.version("tobac")
87+
# This version should work without needing the package installed
88+
__version__ = importlib.metadata.version(__package__ or __name__)

0 commit comments

Comments
 (0)