Fix the issue with paths containing spaces on macOS

This commit is contained in:
Hoang Hong Quan
2024-07-29 16:35:13 +07:00
parent a955966d72
commit b1003bf7a2

View File

@@ -156,8 +156,8 @@ class Utils:
# Remove redundant slashes
path = re.sub(r'/+', '/', path)
else:
# Replace backslashes with forward slashes
path = path.replace('\\', '/')
# Remove backslashes
path = path.replace('\\', '')
# Normalize the path
path = os.path.normpath(path)