import glob


def get_chpl_files(mod_path):
    """
    Get the chapel files that need to be compiled for the provided package

    Parameters
    __________
        mod_path: path to the module being added to the server.

    Returns
    ______
        List of .chpl files at mod_path/server
    """
    path = mod_path + "/server/*.chpl"
    return glob.glob(path)