@permittedKwargs(set())
def add_dist_script_method(self, args, kwargs):
    if (len(args) < 1):
        raise InterpreterException('add_dist_script takes one or more arguments')
    if (len(args) > 1):
        FeatureNew('Calling "add_dist_script" with multiple arguments', '0.49.0').use(self.interpreter.subproject)
    if (self.interpreter.subproject != ''):
        raise InterpreterException('add_dist_script may not be used in a subproject.')
    script_args = self._process_script_args('add_dist_script', args[1:], allow_built=True)
    script = self._find_source_script(args[0], script_args)
    self.build.dist_scripts.append(script)
@permittedKwargs(set())
def add_dist_script_method(self, args, kwargs):
    if (len(args) < 1):
        raise InterpreterException('add_dist_script takes one or more arguments')
    if (len(args) > 1):
        FeatureNew('Calling "add_dist_script" with multiple arguments', '0.49.0').use(self.interpreter.subproject)
    if (self.interpreter.subproject != ):
        raise InterpreterException('add_dist_script may not be used in a subproject.')
    script_args = self._process_script_args('add_dist_script', args[1:], allow_built=True)
    script = self._find_source_script(args[0], script_args)
    self.build.dist_scripts.append(script)