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
+2 -2
View File
@@ -156,8 +156,8 @@ class Utils:
# Remove redundant slashes # Remove redundant slashes
path = re.sub(r'/+', '/', path) path = re.sub(r'/+', '/', path)
else: else:
# Replace backslashes with forward slashes # Remove backslashes
path = path.replace('\\', '/') path = path.replace('\\', '')
# Normalize the path # Normalize the path
path = os.path.normpath(path) path = os.path.normpath(path)