FioAdditions, a trivial example

Here is an example for a fioAdds.py file:

 
#!/usr/bin/env python
#
# this script returns output to be filled into the header of a .fio file. 
# allowed combinations: list, dict, [list], [dict], [list, dict], [dict, list]
#

def main():

    dct = {}
    dct['fioAdd_par1'] = "value1"
    dct['fioAdd_par2'] = "value2"
    dct['fioAdd_par3'] = "value3"
    
    lst = []
    lst.append( 'fioAdd_line1')
    lst.append( 'fioAdd_line2')
    lst.append( 'fioAdd_line3')

    return [dct, lst]

if __name__ == '__main__':
    main()



2019-12-04