Skip to content

Commit

Permalink
mingw use backslashes in compileall py
Browse files Browse the repository at this point in the history
Co-authored-by: Алексей <alexey.pawlow@gmail.com>
  • Loading branch information
Alexpux authored and lazka committed Aug 25, 2023
1 parent 6c0c4ac commit 7a53676
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Lib/compileall.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ def _walk_dir(dir, maxlevels, quiet=0):
if name == '__pycache__':
continue
fullname = os.path.join(dir, name)
if sys.platform == "win32" and sys.version.find("GCC") >= 0:
fullname = fullname.replace('\\','/')
if not os.path.isdir(fullname):
yield fullname
elif (maxlevels > 0 and name != os.curdir and name != os.pardir and
Expand Down

0 comments on commit 7a53676

Please sign in to comment.