diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2021-07-08 20:17:50 +0200 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2021-07-08 20:17:50 +0200 |
commit | 6fa7259028723ca4eb2d2aa62cc21032bee66e6f (patch) | |
tree | c25a7b7e9f1bd0a89a023b72e976e526bd5aff9d | |
parent | 0fc3417d91f1b0f717ec15421752abc41894c3d4 (diff) | |
download | refcat-6fa7259028723ca4eb2d2aa62cc21032bee66e6f.tar.gz refcat-6fa7259028723ca4eb2d2aa62cc21032bee66e6f.zip |
cli: try to always display shiv_root
-rw-r--r-- | python/refcat/cli.py | 3 |
1 files changed, 2 insertions, 1 deletions
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() |