X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2F__init__.py;h=3bfe160833c7bde9c6e6a54a690d308333f2a3c3;hp=2569c9e3e95d3669e63ccb5677be6872f7403f55;hb=4568a372eb5a204e04d917213de03ec51f9110c1;hpb=7bfe2675ecaf4cbbaeae2cc3954b96a494875e46 diff --git a/osm_nbi/__init__.py b/osm_nbi/__init__.py index 2569c9e..3bfe160 100644 --- a/osm_nbi/__init__.py +++ b/osm_nbi/__init__.py @@ -12,5 +12,13 @@ # under the License. ## -version = '6.0.2.post0' -version_date = '2018-08-30' +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