def _act_as_manage(self, *args):
        """Mimic Djangos manage.py."""
        if not hasattr(self, "_configured"):
            self._configure_django(DEBUG=True)
        from django.core import management
        management.execute_from_command_line([sys.argv[0]] + list(args))
dataset/ETHPy150Open amitu/importd/importd/__init__.py/D._act_as_manage/original