Did I find the right examples for you? yes no

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)
save meta data from hyphen.dict_info to a file named 'hyphen_dict_info.pickle'

'path': the path of the saved file; defaults to the value in 'hyphen.config'

        def save_dict_info(path = config.default_dict_info_path):
    '''
    save meta data from hyphen.dict_info to a file named 'hyphen_dict_info.pickle'
    
    'path': the path of the saved file; defaults to the value in 'hyphen.config'
    '''
    
    with open(path + '/hyphen_dict_info.pickle', 'wb') as f:
        pickle.dump(dict_info, f)
        


src/p/y/PyHyphen-2.0.4/2.x/dictools.py   PyHyphen(Download)
 
import os, hyphen
from hyphen import config, save_dict_info
try:
    from xml.etree.cElementTree import ElementTree
    for d in hyphen.dict_info.keys():
        if hyphen.dict_info[d].filepath == file_path: hyphen.dict_info.pop(d)
    save_dict_info()
 
 
        hyphen.dict_info[language] = new_dict
    # Save the modified metadata
    save_dict_info()