Fix normalizing path to unix // Resolve #4117

This commit is contained in:
Ivan Kravets
2023-04-20 18:58:04 +03:00
parent 743fc8e636
commit df896ad401

View File

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