def _copy_delpoy_scripts(self, scripts):
if not os.path.exists(self.paths.scripts()):<EOL><INDENT>os.makedirs(self.paths.scripts())<EOL><DEDENT>new_scripts = []<EOL>for script in scripts:<EOL><INDENT>script = os.path.expandvars(script)<EOL>if not os.path.exists(script):<EOL><INDENT>raise RuntimeError('<STR_LIT>' % script)<EOL><DEDENT>sanitized_name = script.replace('<STR_LIT:/>', '<STR_LIT:_>')<EOL>new_script_cur_path = os.path.expandvars(<EOL>self.paths.scripts(sanitized_name)<EOL>)<EOL>shutil.copy(script, new_script_cur_path)<EOL>new_script_init_path = os.path.join(<EOL>'<STR_LIT>',<EOL>os.path.basename(self.paths.scripts()),<EOL>sanitized_name,<EOL>)<EOL>new_scripts.append(new_script_init_path)<EOL><DEDENT>return new_scripts<EOL>
Copy the given deploy scripts to the scripts dir in the prefix

Args:
    scripts(list of str): list of paths of the scripts to copy to the
        prefix

Returns:
    list of str: list with the paths to the copied scripts, with a
        prefixed with $LAGO_PREFIX_PATH so the full path is not
        hardcoded