Don't cache the subpath component

This commit is contained in:
Fabian Dill 2020-08-02 00:34:23 +02:00
parent 2eefb566ef
commit cfb8e2ce71
1 changed files with 1 additions and 1 deletions

View File

@ -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