projects
/
osm
/
NBI.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix option 'authentication.user_not_authorized' used for test
[osm/NBI.git]
/
osm_nbi
/
__init__.py
diff --git
a/osm_nbi/__init__.py
b/osm_nbi/__init__.py
index
46f927f
..
7bd5b6b
100644
(file)
--- a/
osm_nbi/__init__.py
+++ b/
osm_nbi/__init__.py
@@
-12,6
+12,12
@@
# under the License.
##
# under the License.
##
-version = '7.0.
0.post5
'
-version_date = '20
19-01-14
'
+version = '7.0.
1.post23
'
+version_date = '20
20-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