def exe_object_to_cmd_array(self, exe):
        if self.environment.is_cross_build() and \
                isinstance(exe, build.BuildTarget) or exe.is_cross:
            if 'exe_wrapper'  not in self.environment.cross_info:
                s = 'Can not use target %s as a generator because it is cross-built\n'
                s += 'and no exe wrapper is defined. You might want to set it to native instead.'
                s = s % exe.name
                raise MesonException(s)
        if isinstance(exe, build.BuildTarget):
            exe_arr = [os.path.join(self.environment.get_build_dir(), self.get_target_filename(exe))]
        else:
            exe_arr = exe.get_command()
        return exe_arr
dataset/ETHPy150Open mesonbuild/meson/mesonbuild/backend/backends.py/Backend.exe_object_to_cmd_array/operator `and` -> `or`