Fix sys/meson.py (#11626)

This commit is contained in:
Paul I 2018-09-23 11:54:37 +03:00 committed by xarkes
parent 1ed251b894
commit 8786d57aa5

View File

@ -48,8 +48,12 @@ def set_global_variables():
version = f.readline().split()[1].rstrip()
if os.name == 'nt':
meson = os.path.join(os.path.dirname(sys.executable), 'Scripts', 'meson.py')
MESON = [sys.executable, meson]
meson = os.path.join(os.path.dirname(sys.executable), 'Scripts', 'meson.exe')
if os.path.exists(meson):
MESON = [meson]
else:
meson = os.path.join(os.path.dirname(sys.executable), 'Scripts', 'meson.py')
MESON = [sys.executable, meson]
else:
MESON = ['meson']