Skip to content

Commit

Permalink
Import was failing, try something else
Browse files Browse the repository at this point in the history
  • Loading branch information
Caspar van Leeuwen committed Sep 20, 2024
1 parent 5095c4f commit 3c2f0c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eessi/testsuite/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from importlib.metadata import version, PackageNotFoundError
# If this is an installed package, setuptools_scm should have written the file _version.py in the current directory
try:
from . import _version
print("try importing version")
from _version import __version__
except ImportError:
# Fallback for when the package is not installed, but git cloned. Note that this requires setuptools_scm to be
# available as a runtime dependency
Expand Down

0 comments on commit 3c2f0c6

Please sign in to comment.