From a2b56d8c1fc0b81e2574a3b938db4523e2d16107 Mon Sep 17 00:00:00 2001 From: samith Date: Sat, 4 Jul 2026 21:46:12 +0530 Subject: [PATCH] fix: correct file path for loading redirects in valid_path function --- folder_paths.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folder_paths.py b/folder_paths.py index 09522e19e..f7faf84bd 100644 --- a/folder_paths.py +++ b/folder_paths.py @@ -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]