Skip to content

Commit

Permalink
Fix sys/meson.py (#11626)
Browse files Browse the repository at this point in the history
  • Loading branch information
pelijah authored and xarkes committed Sep 23, 2018
1 parent 1ed251b commit 8786d57
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions sys/meson.py
Expand Up @@ -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']

Expand Down

0 comments on commit 8786d57

Please sign in to comment.