X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2F__init__.py;h=3bfe160833c7bde9c6e6a54a690d308333f2a3c3;hp=1be799cdff3648bf390ee24e1f0372c6bc2edaef;hb=5758955b7b394517ff5caf5506a4400cdc5aa372;hpb=15a1f68badbe4865b7abb3cb9ac816ed963d4b63 diff --git a/osm_nbi/__init__.py b/osm_nbi/__init__.py index 1be799c..3bfe160 100644 --- a/osm_nbi/__init__.py +++ b/osm_nbi/__init__.py @@ -12,5 +12,13 @@ # under the License. ## -version = '6.0.3.post15' -version_date = '2018-10-17' +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