Skip to content

Commit

Permalink
Merge pull request #28 from mmacata/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 42fd3d9 + 0d7ef65 commit 07f68e6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/actinia_satellite_plugin/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# -*- coding: utf-8 -*-
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__ = "unknown"
dist_name = 'actinia_metadata_plugin.wsgi'
__version__ = importlib.metadata.version(dist_name)
except Exception:
__version__ = 'unknown'

0 comments on commit 07f68e6

Please sign in to comment.