X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2F__init__.py;h=7bd5b6bce12c034b4013644e92fbebf5bcf3d219;hp=46f927f63ad3ece515de93153c4c53c7f1a6a963;hb=refs%2Fchanges%2F19%2F8619%2F19;hpb=85807723a3dc3ab1c96a7109d96391342149e98a diff --git a/osm_nbi/__init__.py b/osm_nbi/__init__.py index 46f927f..7bd5b6b 100644 --- a/osm_nbi/__init__.py +++ b/osm_nbi/__init__.py @@ -12,6 +12,12 @@ # under the License. ## -version = '7.0.0.post5' -version_date = '2019-01-14' +version = '7.0.1.post23' +version_date = '2020-04-17' +# Obtain installed package version. Ignore if error, e.g. pkg_resources not installed +try: + from pkg_resources import get_distribution + version = get_distribution("osm_nbi").version +except Exception: + pass