Source code for echolocator_lib.version
import logging
import dls_mainiac_lib.version
import dls_normsql.version
import dls_servbase_lib.version
import dls_utilpack.version
import echolocator_lib
logger = logging.getLogger(__name__)
# ----------------------------------------------------------
# ----------------------------------------------------------
[docs]def meta(given_meta=None):
"""
Returns version information as a dict.
Adds version information to given meta, if any.
"""
s = {}
s["echolocator_lib"] = version()
s.update(dls_servbase_lib.version.meta())
s.update(dls_utilpack.version.meta())
s.update(dls_mainiac_lib.version.meta())
s.update(dls_normsql.version.meta())
try:
import setproctitle
setproctitle.__version__
s["setproctitle"] = setproctitle.__version__
except Exception:
s["setproctitle"] = "unavailable"
if given_meta is not None:
given_meta.update(s)
else:
given_meta = s
return given_meta