'Starts the processor.'

def func(self):

    caller = self.caller
    args = self.args.split()
    if ((not self.args) or (len(args) != 2)):
        caller.msg('Usage:    @mapbuilder    <path.to.module.VARNAME>    <path.to.module.MAP_LEGEND>')
        return
    game_map = None
    legend = None
    path_to_map = args[0]
    path_to_map = path_to_map.rsplit('.', 1)
    try:
        game_map = utils.variable_from_module(path_to_map[0], path_to_map[1])
        if (not game_map):
            raise ValueError('Command    Aborted!\nPath    to    map    variable    failed.\nUsage:    @mapbuilder    <path.to.module.VARNAME>    <path.to.module.MAP_LEGEND>')
    except Exception as exc:
        caller.msg(exc)
        return
    path_to_legend = args[1]
    path_to_legend = path_to_legend.rsplit('.', 1)
    if (len(path_to_legend) == 1):
        path_to_legend.insert(0, path_to_map[0])
    try:
        legend = utils.variable_from_module(path_to_legend[0], path_to_legend[1])
        if (not legend):
            raise ValueError('Command    Aborted!\nPath    to    legend    variable    failed.\nUsage:    @mapbuilder    <path.to.module.VARNAME>    <path.to.module.MAP_LEGEND>')
    except Exception as exc:
        caller.msg(exc)
        return
    iterations = 1
    build_exits = True
    if ('one' in self.switches):
        build_exits = False
    if ('two' in self.switches):
        iterations = 2
        build_exits = False
    build_map(caller, game_map, legend, iterations, build_exits)
