Bug 1235559 - |mach android-emulator| looks for the wrong file names on Windows. r=gbrown

This commit is contained in:
Alessio Placitelli 2015-12-29 06:25:00 +01:00
Родитель 8d1e5a02b1
Коммит b1b366d5b2
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -582,6 +582,11 @@ def _find_sdk_exe(substs, exe, tools):
except KeyError: except KeyError:
_log_debug("%s not set" % exe.upper()) _log_debug("%s not set" % exe.upper())
# Append '.exe' to the name on Windows if it's not present,
# so that the executable can be found.
if (os.name == 'nt' and not exe.lower().endswith('.exe')):
exe += '.exe'
if not found: if not found:
# Can exe be found in the Android SDK? # Can exe be found in the Android SDK?
try: try: