diff --git a/bin/configuration.py b/bin/configuration.py index 0abd8ca..17cf0f7 100644 --- a/bin/configuration.py +++ b/bin/configuration.py @@ -13,6 +13,17 @@ $HOME is the home directory of the user running this script. prefix = os.environ.get("DOUGAL_ROOT", os.environ.get("HOME", ".")+"/software") +DOUGAL_ROOT = os.environ.get("DOUGAL_ROOT", os.environ.get("HOME", ".")+"/software") +VARDIR = os.environ.get("VARDIR", DOUGAL_ROOT+"/var") +LOCKFILE = os.environ.get("LOCKFILE", VARDIR+"/runner.lock") + +def vars (): + return { + "DOUGAL_ROOT": DOUGAL_ROOT, + "VARDIR": VARDIR, + "LOCKFILE": LOCKFILE + } + def read (file = None): if file is None: file = prefix+"/etc/config.yaml"