From b1003bf7a223e6ef930d44d6e7843929c2fe894a Mon Sep 17 00:00:00 2001 From: Hoang Hong Quan Date: Mon, 29 Jul 2024 16:35:13 +0700 Subject: [PATCH] Fix the issue with paths containing spaces on macOS --- Scripts/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Scripts/utils.py b/Scripts/utils.py index 8f61a08..674a088 100755 --- a/Scripts/utils.py +++ b/Scripts/utils.py @@ -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)