X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2F__init__.py;h=2c895ce42bdd4249d2bf97cbe0cfeec737778f9a;hp=84597c08c561f6ee60deccec3280db1c015f0d6c;hb=22577435288d15904b339b2ad3d580f9ad2edc6f;hpb=7fd248705f1eba06d0998339af9e48e6b8ffe5c1 diff --git a/osm_nbi/__init__.py b/osm_nbi/__init__.py index 84597c0..2c895ce 100644 --- a/osm_nbi/__init__.py +++ b/osm_nbi/__init__.py @@ -12,5 +12,12 @@ # under the License. ## -version = '7.0.0.post1' -version_date = '2018-12-10' +version = '7.0.1.post17' +version_date = '2019-03-31' + +# 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