import os

def parse_cfg(filename):
    feat_list = list()

    with open(os.path.join(os.path.dirname(__file__), filename), "r") as f:
        contents = f.read()
    if contents:
        feat_list = contents.split('\n')
        feat_list = list(filter(None, feat_list))
    
    feat_list = [s.strip() for s in feat_list if s.startswith('#') == False]

    return feat_list
