add global SENTINEL object

This commit is contained in:
Mike Fährmann
2020-05-19 21:47:18 +02:00
parent c8787647ed
commit 3201fe3521
5 changed files with 8 additions and 10 deletions

View File

@@ -189,8 +189,8 @@ def clear():
def _path():
path = config.get(("cache",), "file", -1)
if path != -1:
path = config.get(("cache",), "file", util.SENTINEL)
if path is not util.SENTINEL:
return util.expand_path(path)
if util.WINDOWS: