def handle(self, *args, **options):
        if not args:
            raise CommandError("You must specify at least a python file path to execute.")
        args = map(operator.methodcaller("split", ":"), args)
        for arg in args:
            try:
                filename, filename_args = arg
            except __HOLE__:
                filename, = arg
                filename_args = ""
            if not path.isfile(filename):
                raise CommandError("{!r} is not a valid file path.".format(filename))
            run(filename, filename_args)
dataset/ETHPy150Open anler/django-dev-commands/django_dev_commands/management/commands/run.py/Command.handle