@FeatureNewKwargs('generator.process', '0.45.0', ['preserve_path_from'])
@permittedKwargs({'extra_args', 'preserve_path_from'})
def process_method(self, args, kwargs):
    extras = mesonlib.stringlistify(kwargs.get('extra_args', []))
    if ('preserve_path_from' in kwargs):
        preserve_path_from = kwargs['preserve_path_from']
        if (not isinstance(preserve_path_from, str)):
            raise InvalidArguments('Preserve_path_from must be a string.')
        preserve_path_from = os.path.normpath(preserve_path_from)
        if (not os.path.isabs(preserve_path_from)):
            raise InvalidArguments('Preserve_path_from must be an absolute path for now. Sorry.')
    else:
        preserve_path_from = None
    gl = self.held_object.process_files('Generator', args, self.interpreter, preserve_path_from, extra_args=extras)
    return GeneratedListHolder(gl)
@FeatureNewKwargs('generator.process', '0.45.0', ['preserve_path_from'])
@permittedKwargs({'extra_args', 'preserve_path_from'})
def process_method(self, args, kwargs):
    extras = mesonlib.stringlistify(kwargs.get('extra_args', []))
    if ('preserve_path_from' in kwargs):
        preserve_path_from = kwargs['preserve_path_from']
        if (not isinstance(preserve_path_from, str)):
            raise InvalidArguments('Preserve_path_from must be a string.')
        preserve_path_from = os.path.normpath(preserve_path_from)
        if (not os.path.isabs(preserve_path_from)):
            raise InvalidArguments('Preserve_path_from must be an absolute path for now. Sorry.')
    else:
        preserve_path_from = None
    gl = self.held_object.process_files('Generator', args, self.interpreter, preserve_path_from, extra_args=extras)
    return GeneratedListHolder(gl)