

def run(self):
    import os
    from django.core.management import execute_from_command_line, CommandError
    curdir = os.getcwd()
    forum_dir = os.path.realpath('djangobb_forum')
    os.chdir(forum_dir)
    try:
        execute_from_command_line(['django-admin', 'compilemessages'])
    except CommandError:
        pass
    finally:
        os.chdir(curdir)

dataset/ETHPy150Open slav0nic/djangobb/setup.py compile_translations.run/original