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

View File

@@ -82,7 +82,7 @@ local_path.cached_path = None
def output_path(path): def output_path(path):
if output_path.cached_path: if output_path.cached_path:
return os.path.join(output_path.cached_path, 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) path = os.path.join(output_path.cached_path, path)
os.makedirs(os.path.dirname(path), exist_ok=True) os.makedirs(os.path.dirname(path), exist_ok=True)
return path return path