tools: remove hardcoded fallback paths in memory_remember, task_check
This commit is contained in:
parent
a17c874351
commit
e1e5538a42
|
|
@ -15,7 +15,7 @@ title = sys.argv[1]
|
|||
tags_csv = sys.argv[2]
|
||||
body = sys.argv[3]
|
||||
|
||||
mount = os.environ.get("OLLIE") or os.path.expanduser("~/mnt/ollie")
|
||||
mount = os.environ["OLLIE"]
|
||||
mem_dir = os.path.join(mount, "m")
|
||||
|
||||
if not os.path.isdir(mem_dir):
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ if not sid:
|
|||
print("error: OLLIE_SESSION_ID not set", file=sys.stderr)
|
||||
sys.exit(1)
|
||||
|
||||
ollie = os.environ.get("OLLIE", os.path.expanduser("~/mnt/ollie"))
|
||||
ollie = os.environ["OLLIE"]
|
||||
plan_path = os.path.join(ollie, "s", sid, "plan")
|
||||
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in New Issue