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