summaryrefslogtreecommitdiff
path: root/modules/mono/SCsub
diff options
context:
space:
mode:
authorBrainBlasted <brainblastedmods@gmail.com>2017-11-04 16:55:04 -0400
committerBrainBlasted <brainblastedmods@gmail.com>2017-11-04 21:05:22 -0400
commit8e2a756eb89d0bc0a32bcec4276d8518db9cb9e2 (patch)
treeceb5ec55029091cf9555c98229f9f15b8d3ba50d /modules/mono/SCsub
parent3cbcf5c2ddadf1cd630137d6bd438634b8517b00 (diff)
Added for fallback msbuild.exe.
Fixes #12613
Diffstat (limited to 'modules/mono/SCsub')
-rw-r--r--modules/mono/SCsub4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/mono/SCsub b/modules/mono/SCsub
index 27e60c4623..18a20ecac4 100644
--- a/modules/mono/SCsub
+++ b/modules/mono/SCsub
@@ -84,12 +84,16 @@ def find_msbuild_unix(filename):
hint_path = os.path.join(hint_dir, filename)
if os.path.isfile(hint_path):
return hint_path
+ elif os.path.isfile(hint_path + ".exe"):
+ return hint_path + ".exe"
for hint_dir in os.environ["PATH"].split(os.pathsep):
hint_dir = hint_dir.strip('"')
hint_path = os.path.join(hint_dir, filename)
if os.path.isfile(hint_path) and os.access(hint_path, os.X_OK):
return hint_path
+ if os.path.isfile(hint_path + ".exe") and os.access(hint_path + ".exe", os.X_OK):
+ return hint_path + ".exe"
return None