def command_load(args):

    if isinstance(args.config, list):
        # Load each configuration but the last to the background
        for cfg in args.config[:-1]:
            new_args = argparse.Namespace(**args.__dict__)
            new_args.detached = True
            new_args.config = cfg
            command_load(new_args)

        # The last one will be detached if specified on the command line
        new_args = argparse.Namespace(**args.__dict__)
        new_args.config = args.config[-1]
        command_load(new_args)
        return

    if '.' == args.config:
        if config.in_cwd():
            configfile = config.in_cwd()[0]
        else:
            sys.exit('No tmuxp configs found in current directory.')
    else:
        configfile = args.config

    file_user = os.path.join(config_dir, configfile)
    file_cwd = os.path.join(cwd_dir, configfile)

    if os.path.exists(file_cwd) and os.path.isfile(file_cwd):
        print('load %s' % file_cwd)
        load_workspace(file_cwd, args)
    elif os.path.exists(file_user) and os.path.isfile(file_user):
        load_workspace(file_user, args)
    else:
        logger.error('%s not found.' % configfile)
Implements :func:`autobahn.wamp.interfaces.ISession.onChallenge`
dataset/ETHPy150Open tony/tmuxp/tmuxp/cli.py/command_load--crossover with--dataset/ETHPy150Open crossbario/autobahn-python/autobahn/wamp/protocol.py/ApplicationSession.onChallenge