projects
/
osm
/
NBI.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix 1025. Do not remove last project reference if it will be deleted
[osm/NBI.git]
/
osm_nbi
/
__init__.py
diff --git
a/osm_nbi/__init__.py
b/osm_nbi/__init__.py
index
46f927f
..
1644d0b
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.post
5
'
-version_date = '2019-0
1-1
4'
+version = '7.0.0.post
11
'
+version_date = '2019-0
2-0
4'
+# 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