def run(self): _install_lib.run(self) from django.core.management.commands.compilemessages \ import Command os.chdir("bingo") cmd = Command() cmd.handle(verbosity=0, exclude=[], locale=[]) os.chdir("..")
def run(self): from django.core.management.commands.compilemessages import Command as CompileMessages curdir = os.getcwd() os.chdir(os.path.join(os.path.dirname(__file__), 'marcus')) cmd = CompileMessages() cmd.stdout = sys.stdout cmd.stderr = sys.stderr cmd.handle(verbosity=4) os.chdir(curdir)