

def handle(self, *args, **options):
    folder = (args[0] if args else 'static')
    if (not folder.startswith('/')):
        destination = os.path.join(os.getcwd(), folder)
    else:
        destination = folder
    if os.path.exists(destination):
        raise CommandError(('The folder %s already exists - aborting!' % destination))
    source = os.path.realpath(os.path.join(os.path.dirname(__file__), '../../static'))
    print(("Copying Oscar's static files to %s" % (destination,)))
    shutil.copytree(source, destination)
    if (destination not in settings.STATICFILES_DIRS):
        print(('You need to add %s to STATICFILES_DIRS in order for your local overrides to be picked up' % destination))

dataset/ETHPy150Open django-oscar/django-oscar/src/oscar/management/commands/oscar_fork_statics.py Command.handle/original