def copy_image(self, content_path, image):
        if image.startswith('http'):
            return

        if image.startswith('/'):
            image = image[1:]
            src = os.path.join(os.path.dirname(self.SVN_REPO_PATH), image)
        else:
            src = os.path.join(self.SVN_REPO_PATH, content_path, image)
        dst = os.path.join(settings.MEDIA_ROOT, 'pages', image)

        try:
            os.makedirs(os.path.dirname(dst))
        except __HOLE__:
            pass
        try:
            shutil.copyfile(src, dst)
        except Exception as e:
            pass
dataset/ETHPy150Open python/pythondotorg/pages/management/commands/import_pages_from_svn.py/Command.copy_image