mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Don't cache the subpath component
This commit is contained in:
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
|
||||
|
Reference in New Issue
Block a user