Skip to content

Commit 42490eb

Browse files
Alexpuxlazka
authored andcommitted
mingw use backslashes in compileall py
Co-authored-by: Алексей <[email protected]>
1 parent 74009c9 commit 42490eb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/compileall.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ def _walk_dir(dir, maxlevels, quiet=0):
3838
if name == '__pycache__':
3939
continue
4040
fullname = os.path.join(dir, name)
41+
if sys.platform == "win32" and sys.version.find("GCC") >= 0:
42+
fullname = fullname.replace('\\','/')
4143
if not os.path.isdir(fullname):
4244
yield fullname
4345
elif (maxlevels > 0 and name != os.curdir and name != os.pardir and

0 commit comments

Comments
 (0)