projects
/
osm
/
NBI.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Coverity-CWE 330: Use of Insufficiently Random Values
[osm/NBI.git]
/
osm_nbi
/
__init__.py
diff --git
a/osm_nbi/__init__.py
b/osm_nbi/__init__.py
index
59d427d
..
3bfe160
100644
(file)
--- a/
osm_nbi/__init__.py
+++ b/
osm_nbi/__init__.py
@@
-12,6
+12,13
@@
# under the License.
##
# under the License.
##
-version =
'7.0.0.post4'
-version_date =
'2019-01-14'
+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