mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-07-06 22:51:18 +08:00
fix: correct file path for loading redirects in valid_path function
This commit is contained in:
parent
744d56261b
commit
a2b56d8c1f
@ -24,7 +24,7 @@ def valid_path(saved_path,description = "Instance Folder"):
|
||||
|
||||
redirect_path = os.path.join(os.path.dirname(__file__),"path.redirects.json")
|
||||
if os.path.exists(redirect_path):
|
||||
with open("redirect_path","r") as f:
|
||||
with open(redirect_path,"r") as f:
|
||||
redirects = json.load(f)
|
||||
if description in redirects and os.path.exists(redirects[description]):
|
||||
return redirects[description]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user