data dir fix

This commit is contained in:
callebtc
2022-10-03 01:11:44 +02:00
parent 0e24579862
commit cd89321561
3 changed files with 3 additions and 2 deletions

View File

@@ -19,6 +19,7 @@ if not DEBUG:
sys.tracebacklimit = 0
CASHU_DIR = env.str("CASHU_DIR", default=os.path.join(str(Path.home()), ".cashu"))
CASHU_DIR = CASHU_DIR.replace("~", str(Path.home()))
assert len(CASHU_DIR), "CASHU_DIR not defined"
LIGHTNING = env.bool("LIGHTNING", default=True)