Lazy commit on frankie.
This commit is contained in:
parent
1cd8113839
commit
842df11dd7
@ -14,7 +14,9 @@ def rm(p):
|
||||
os.remove(p)
|
||||
|
||||
def filepath(f):
|
||||
ret = os.path.join(os.environ.get("XDG_CACHE_HOME"), f"repo.{f}")
|
||||
base = os.environ.get("XDG_CACHE_HOME")
|
||||
base = "/tmp" if base == None else base
|
||||
ret = os.path.join(base, f"repo.{f}")
|
||||
return ret
|
||||
|
||||
def is_file_recent(filepath, minutes=10):
|
||||
|
Loading…
x
Reference in New Issue
Block a user