def get_server_modules(cfg):
    """
    Get list of modules to add at users request.

    Parameters
    __________
        cfg: ServerModules.cfg path for the module being added.

    Returns
    _______
        List of module names that need to be added to the main .cfg file to be built
    """
    mod_list = []
    with open(cfg) as f:
        for line in f.readlines():
            m = line.split("#")[0].split("/")[-1].strip()
            mod_list += [m] if m else []
    return mod_list