Skip to content

Commit

Permalink
fix import error
Browse files Browse the repository at this point in the history
  • Loading branch information
mmacata committed Jun 14, 2024
1 parent aa9b5e9 commit cf2bbd0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/actinia_core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,10 @@
#
#######

from pkg_resources import get_distribution, DistributionNotFound

import importlib.metadata
try:
# Change here if project is renamed and does not equal the package name
dist_name = __name__
__version__ = get_distribution(dist_name).version
except DistributionNotFound:
__version__ = importlib.metadata.version(dist_name)
except Exception:
__version__ = "unknown"

0 comments on commit cf2bbd0

Please sign in to comment.