aboutsummaryrefslogtreecommitdiffstats
path: root/configure.py
diff options
context:
space:
mode:
authorHannes Rantzsch <[email protected]>2020-12-01 09:49:41 +0100
committerHannes Rantzsch <[email protected]>2020-12-01 12:26:48 +0100
commit696b16bd5daea514de286fdf6966955cbb13aa14 (patch)
tree89f33c7e696e62a5b70708077abd497889fb171e /configure.py
parente95d2bb517a109ba58ed74a144116b340fccc2a6 (diff)
apply python path fix only on mingw
otherwise visual studio 2015 will be confused
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 0808a0358..e8ed0a24a 100755
--- a/configure.py
+++ b/configure.py
@@ -1994,7 +1994,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