def write_list_of_inchikeys(inchikey_list, base_name, output_dir):
    'Write list of inchikeys as a text file.'
    inchikey_list_name = (base_name + INCHIKEY_FILENAME_END)
    with tf.gfile.Open(os.path.join(output_dir, inchikey_list_name), 'w') as writer:
        for inchikey in inchikey_list:
            writer.write(('%s\n' % inchikey))
Write list of inchikeys as a text file.
def write_list_of_inchikeys(inchikey_list, base_name, output_dir):
    
    inchikey_list_name = (base_name + INCHIKEY_FILENAME_END)
    with tf.gfile.Open(os.path.join(output_dir, inchikey_list_name), 'w') as writer:
        for inchikey in inchikey_list:
            writer.write(('%s\n' % inchikey))