def read_config(file_name, config):
    config_file = open(file_name, 'r')
    l = []
    for line in config_file:
        if ('' == line):
            break
        s = line.rstrip('\n')
        s.strip()
        if ('' == s):
            continue
        if ('#' == s[:1]):
            continue
        del l[:]
        l = s.split(',')
        config[l[0]] = l[1]
    config_file.close()
def read_config(file_name, config):
    config_file = open(file_name, 'r')
    l = []
    for line in config_file:
        if ( == line):
            break
        s = line.rstrip('\n')
        s.strip()
        if ( == s):
            continue
        if ('#' == s[:1]):
            continue
        del l[:]
        l = s.split(',')
        config[l[0]] = l[1]
    config_file.close()