Skip to content

Commit

Permalink
Merge pull request #21 from actinia-org/import-error-fix
Browse files Browse the repository at this point in the history
Fix import error
  • Loading branch information
mmacata authored Jun 18, 2024
2 parents 11609c3 + 17e4969 commit 8ccc1a1
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/actinia_parallel_plugin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,11 @@
__maintainer__ = "mundialis GmbH % Co. KG"


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"
finally:
del get_distribution, DistributionNotFound

0 comments on commit 8ccc1a1

Please sign in to comment.