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):