3 # Returns the path to the meson binary, for cases where we need to call it as
4 # part of the build, e.g. to install into tmp_install/ for the tests.
12 if 'MUON_PATH' in os.environ:
13 to_print += ['muon', os.environ['MUON_PATH']]
15 mesonintrospect = os.environ['MESONINTROSPECT']
16 components = shlex.split(mesonintrospect)
18 if len(components) < 2:
19 print('expected more than two components, got: %s' % components)
22 if components[-1] != 'introspect':
23 print('expected introspection at the end')
26 to_print += ['meson'] + components[:-1]
28 print('\n'.join(to_print), end='')