def copy_resources(self):
if not os.path.isdir('<STR_LIT>'):<EOL><INDENT>os.mkdir('<STR_LIT>')<EOL><DEDENT>resource_dir = os.path.join(os.getcwd(), '<STR_LIT>', '<STR_LIT>')<EOL>copied_resources = []<EOL>for resource in self.resources:<EOL><INDENT>src = os.path.join(EULER_DATA, '<STR_LIT>', resource)<EOL>if os.path.isfile(src):<EOL><INDENT>shutil.copy(src, resource_dir)<EOL>copied_resources.append(resource)<EOL><DEDENT><DEDENT>if copied_resources:<EOL><INDENT>copied = '<STR_LIT:U+002CU+0020>'.join(copied_resources)<EOL>path = os.path.relpath(resource_dir, os.pardir)<EOL>msg = "<STR_LIT>".format(copied, path)<EOL>click.secho(msg, fg='<STR_LIT>')<EOL><DEDENT>
Copies the relevant resources to a resources subdirectory