From 6fa7259028723ca4eb2d2aa62cc21032bee66e6f Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Thu, 8 Jul 2021 20:17:50 +0200 Subject: cli: try to always display shiv_root --- python/refcat/cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/refcat/cli.py b/python/refcat/cli.py index d4b5b81..f47c63c 100644 --- a/python/refcat/cli.py +++ b/python/refcat/cli.py @@ -244,12 +244,13 @@ def main(): else: sys.exit(0) elif len(sys.argv) == 1: + shiv_root_default = os.path.join(os.path.expanduser("~"), ".shiv") print(__doc__) print("VERSION {}".format(__version__)) print("SETTINGS {}".format(settings.settings_file)) print("BASE {}".format(settings.BASE)) print("TMPDIR {}".format(settings.TMPDIR)) - print("SHIV_ROOT {}".format(os.environ.get("SHIV_ROOT"))) + print("SHIV_ROOT {}".format(os.environ.get("SHIV_ROOT") or shiv_root_default)) print() names = [ name for name in sorted(Register.task_names()) if name not in suppress_task_names and not name.islower() -- cgit v1.2.3