This commit is contained in:
space-nuko 2023-07-03 23:12:50 -05:00
parent 17c7d32973
commit bcb11a15b3

View File

@ -157,7 +157,7 @@ def get_relative_path(folder_name, full_path):
full_path = os.path.normpath(full_path) full_path = os.path.normpath(full_path)
for x in folders[0]: for x in folders[0]:
x = os.path.normpath(x) 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 os.path.relpath(full_path, x)
return None return None