aboutsummaryrefslogtreecommitdiffstats
path: root/configure.py
diff options
context:
space:
mode:
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.py b/configure.py
index b18c6390e..3688b153e 100755
--- a/configure.py
+++ b/configure.py
@@ -2001,7 +2001,7 @@ def create_template_vars(source_paths, build_paths, options, modules, cc, arch,
def choose_python_exe():
exe = sys.executable
- if exe[1] == ':': # Windows style paths
+ if options.os == 'mingw': # mingw doesn't handle the backslashes in the absolute path well
return exe.replace('\\', '/')
return exe