Mercurial > repos > cmonjeau > commet
diff prepare_commet.py @ 0:a6beb4d4c417
Imported from capsule None
author | cmonjeau |
---|---|
date | Fri, 05 Jun 2015 11:41:26 -0400 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/prepare_commet.py Fri Jun 05 11:41:26 2015 -0400 @@ -0,0 +1,26 @@ +import sys, os, re + +""" + +Created by Cyril Monjeaud +Cyril.Monjeaud@irisa.fr + +""" + +def __main__(): + + # open the outpt file + read_set=open(sys.argv[1], 'w') + read_set.write("//commet input file//\n") + + # write the files path + i = 2 + while i < len(sys.argv): + read_set.write(sys.argv[i+1]+":") + read_set.write(sys.argv[i].replace(",", ";")+"\n") + i = i+2 + + # close output file + read_set.close() + +if __name__ == "__main__": __main__()