X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_lcm%2F__init__.py;h=b21755a2a61062986b7d9de501f5ba25f5ba0a4f;hb=a0c6bafeb1998041e171aa87b2134f69d650a9c0;hp=da0d9927c6711f32b80771c28941a5200b0602e2;hpb=8069ce54d91918c53ec3bf9f8fd4eee8b6aacb93;p=osm%2FLCM.git diff --git a/osm_lcm/__init__.py b/osm_lcm/__init__.py index da0d992..b21755a 100644 --- a/osm_lcm/__init__.py +++ b/osm_lcm/__init__.py @@ -13,5 +13,13 @@ ## # version moved to lcm.py. uncomment if LCM is installed as library and installed -version = '6.0.2.post0' -version_date = '2018-08-28' +version = "7.0.1.post18" +version_date = "2020-04-08" + +# Try to get version from package using pkg_resources (available with setuptools) +try: + from pkg_resources import get_distribution + + version = get_distribution("osm_lcm").version +except Exception: + pass