X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2F__init__.py;h=7bd5b6bce12c034b4013644e92fbebf5bcf3d219;hp=3c381244b31bfdea561bf2f95a8970e329575f84;hb=d7749588e6cc73661d052fc5bb41605e1b588128;hpb=b7e42f04a0e421697ea9107040c4effcf44bbb2e;ds=sidebyside diff --git a/osm_nbi/__init__.py b/osm_nbi/__init__.py index 3c38124..7bd5b6b 100644 --- a/osm_nbi/__init__.py +++ b/osm_nbi/__init__.py @@ -12,5 +12,12 @@ # under the License. ## -version = '6.0.2.post4' -version_date = '2018-09-13' +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