X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2F__init__.py;h=2c895ce42bdd4249d2bf97cbe0cfeec737778f9a;hp=e69de29bb2d1d6434b8b29ae775ad8c2e48c5391;hb=22577435288d15904b339b2ad3d580f9ad2edc6f;hpb=c94c3df90aa64298a7935a80b221f80f3c043260 diff --git a/osm_nbi/__init__.py b/osm_nbi/__init__.py index e69de29..2c895ce 100644 --- a/osm_nbi/__init__.py +++ b/osm_nbi/__init__.py @@ -0,0 +1,23 @@ +## +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. +## + +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