mirror of
https://github.com/platformio/platformio-core.git
synced 2025-08-01 10:54:27 +02:00
Fix normalizing path to unix // Resolve #4117
This commit is contained in:
@@ -193,7 +193,7 @@ def match_src_files(src_dir, src_filter=None, src_exts=None, followlinks=True):
|
|||||||
def to_unix_path(path):
|
def to_unix_path(path):
|
||||||
if not IS_WINDOWS or not path:
|
if not IS_WINDOWS or not path:
|
||||||
return path
|
return path
|
||||||
return re.sub(r"[\\]+", "/", path)
|
return path.replace("\\", "/")
|
||||||
|
|
||||||
|
|
||||||
def expanduser(path):
|
def expanduser(path):
|
||||||
|
Reference in New Issue
Block a user