fix realpath

This commit is contained in:
j 2023-11-24 15:29:42 +00:00
parent e2cd0861a3
commit f24bb26ed1

View file

@ -14,7 +14,7 @@ def get_propery(element, name):
def melt_xml(file): def melt_xml(file):
out = None out = None
real_path = os.path.realpath(path) real_path = os.path.realpath(file)
if file in _CACHE and isinstance(_CACHE[file], list): if file in _CACHE and isinstance(_CACHE[file], list):
ts, out = _CACHE[file] ts, out = _CACHE[file]
if os.stat(real_path).st_mtime != ts: if os.stat(real_path).st_mtime != ts: