view prepare_commet.py @ 1:0a09dd575d91

change package repository
author cmonjeau
date Mon, 06 Jul 2015 15:47:04 +0000
parents a6beb4d4c417
children
line wrap: on
line source

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__()