From bcb11a15b370a15db002238315ef97a6680a03d0 Mon Sep 17 00:00:00 2001 From: space-nuko <24979496+space-nuko@users.noreply.github.com> Date: Mon, 3 Jul 2023 23:12:50 -0500 Subject: [PATCH] Fix --- folder_paths.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folder_paths.py b/folder_paths.py index 46a750165..1281d85f5 100644 --- a/folder_paths.py +++ b/folder_paths.py @@ -157,7 +157,7 @@ def get_relative_path(folder_name, full_path): full_path = os.path.normpath(full_path) for x in folders[0]: x = os.path.normpath(x) - if os.path.commonprefix([x, full_path]): + if os.path.commonprefix([x, full_path]) == x: return os.path.relpath(full_path, x) return None