mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-19 23:37:08 +08:00
Fix
This commit is contained in:
parent
17c7d32973
commit
bcb11a15b3
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user