Don't cache the subpath component
This commit is contained in:
parent
2eefb566ef
commit
cfb8e2ce71
2
Utils.py
2
Utils.py
|
@ -82,7 +82,7 @@ local_path.cached_path = None
|
|||
def output_path(path):
|
||||
if output_path.cached_path:
|
||||
return os.path.join(output_path.cached_path, path)
|
||||
output_path.cached_path = local_path(os.path.join("output", path))
|
||||
output_path.cached_path = local_path("output")
|
||||
path = os.path.join(output_path.cached_path, path)
|
||||
os.makedirs(os.path.dirname(path), exist_ok=True)
|
||||
return path
|
||||
|
|
Loading…
Reference in New Issue