summaryrefslogtreecommitdiff
path: root/Python-2.7.5/Lib/compileall.py
diff options
context:
space:
mode:
Diffstat (limited to 'Python-2.7.5/Lib/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: