From df896ad40179c18dde99c3bafe498dabec43291f Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Thu, 20 Apr 2023 18:58:04 +0300 Subject: [PATCH] Fix normalizing path to unix // Resolve #4117 --- platformio/fs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformio/fs.py b/platformio/fs.py index 107e6982..1f43a7a3 100644 --- a/platformio/fs.py +++ b/platformio/fs.py @@ -193,7 +193,7 @@ def match_src_files(src_dir, src_filter=None, src_exts=None, followlinks=True): def to_unix_path(path): if not IS_WINDOWS or not path: return path - return re.sub(r"[\\]+", "/", path) + return path.replace("\\", "/") def expanduser(path):