mirror of
https://github.com/outbackdingo/OpCore-Simplify.git
synced 2026-01-27 18:19:49 +00:00
Fix the issue with paths containing spaces on macOS
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user