Skip to content
Snippets Groups Projects
Commit 11527e81 authored by Stefano Di Frischia's avatar Stefano Di Frischia
Browse files

L2SS-871: use env variable to determine path

parent 0ee5d31b
Branches
Tags
1 merge request!407Resolve L2SS-871 "update-hdf5-writer"
......@@ -36,14 +36,15 @@ __all__ = [
def _get_lsc_version() -> str:
""" Retrieve the Lofar Station Control software version """
filepath = f"{os.path.expanduser('~')}/tangostationcontrol/VERSION"
filepath = os.path.join(os.environ.get('LOFAR20_DIR'), 'tangostationcontrol/VERSION')
with open(filepath) as f:
version = f.readline().strip()
return version or ""
def _get_writer_version() -> str:
""" Retrieve the Statistics Writer software version """
with open('VERSION') as f:
filepath = os.path.join(os.path.dirname(__file__), '/VERSION')
with open(filepath) as f:
version = f.readline().strip()
return version or ""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment