X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=osm_nbi%2F__init__.py;h=1644d0b8726042adf5cfedb20af2dd5d77bb4b91;hb=0915a2e53675e6be583b4f112f56718855b1f2c9;hp=1e02f660ce9798620ecfb935cb0944debbc68fef;hpb=5792d7d7e1ff32ef0edfc432bd86a8fb348622c3;p=osm%2FNBI.git diff --git a/osm_nbi/__init__.py b/osm_nbi/__init__.py index 1e02f66..1644d0b 100644 --- a/osm_nbi/__init__.py +++ b/osm_nbi/__init__.py @@ -12,5 +12,12 @@ # under the License. ## -version = '6.0.2.post1' -version_date = '2018-08-30' +version = '7.0.0.post11' +version_date = '2019-02-04' + +# 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