aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2021-07-08 20:17:50 +0200
committerMartin Czygan <martin.czygan@gmail.com>2021-07-08 20:17:50 +0200
commit6fa7259028723ca4eb2d2aa62cc21032bee66e6f (patch)
treec25a7b7e9f1bd0a89a023b72e976e526bd5aff9d
parent0fc3417d91f1b0f717ec15421752abc41894c3d4 (diff)
downloadrefcat-6fa7259028723ca4eb2d2aa62cc21032bee66e6f.tar.gz
refcat-6fa7259028723ca4eb2d2aa62cc21032bee66e6f.zip
cli: try to always display shiv_root
-rw-r--r--python/refcat/cli.py3
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()