def load_rlms_modules():
    """
    Load all the RLMS modules that we are going to use.

    Expand documentation on how to add a new one.
    """
    if len(app.config['RLMS']) == 0:
        print >> sys.stderr, "Warning: RLMS configuration variable empty or not found."
        print >> sys.stderr, "Warning: This means that this LabManager can not handle any remote lab, which"
        print >> sys.stderr, "Warning: does not make sense. You should add a RLMS = [] variable in your "
        print >> sys.stderr, "Warning: config.py indicating which extensions should be loaded"
        print >> sys.stderr, "Warning: (e.g. weblabdeusto)" # TODO: add more whenever implemented

    import labmanager.rlms.ext.virtual as virtual
    assert virtual is not None # pyflakes warning

    for _rlms in app.config['RLMS']:
        __import__(_rlms % 'labmanager.rlms.ext.%s')

# This will register all the RLMSs in the global registry. So it will
# always be called (regardless we're using the Flask debugger or a WSGI
# environment).
dataset/ETHPy150Open gateway4labs/labmanager/labmanager/__init__.py/load_rlms_modules/swapped operands of `%`