summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Donnelly <mingw.android@gmail.com>2013-05-21 23:00:02 +0100
committerRay Donnelly <mingw.android@gmail.com>2013-05-21 23:00:02 +0100
commit2541916455921dd518c6ba8831fe84362cfd8211 (patch)
treecf5725d0ce4ba53902b21614c2dc8187832f2507
parent2d9cb4276c62ae214f43b8fbcb1f4672e647b033 (diff)
downloadpython-2541916455921dd518c6ba8831fe84362cfd8211.tar.gz
MinGW-w64: Replace forwardslashes with backslashes
..in compileall.py
-rw-r--r--Python-2.7.5/Lib/compileall.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Python-2.7.5/Lib/compileall.py b/Python-2.7.5/Lib/compileall.py
index 5cfa8be..c5bcb27 100644
--- a/Python-2.7.5/Lib/compileall.py
+++ b/Python-2.7.5/Lib/compileall.py
@@ -42,6 +42,8 @@ def compile_dir(dir, maxlevels=10, ddir=None,
success = 1
for name in names:
fullname = os.path.join(dir, name)
+ if sys.platform == "win32" and sys.version.find("GCC") >= 0:
+ fullname = fullname.replace('\\','/')
if ddir is not None:
dfile = os.path.join(ddir, name)
else: