Exemple #1
0
def load_file_type_config0(fpath):
    from xutils import fsutil, textutil
    text = fsutil.readfile(fpath)
    ext_set = hashset()
    ext_type_dict = textutil.parse_config_text(text, 'dict')
    for ext in ext_type_dict:
        ext_set.add(ext)
    return ext_set
Exemple #2
0
def load_config_as_dict(fpath):
    from xutils import fsutil, textutil
    text = fsutil.readfile(fpath)
    ext_set = hashset()
    return textutil.parse_config_text(text, 'dict')