Mercurial > repos > cmonjeau > commet
annotate prepare_commet.py @ 1:0a09dd575d91
change package repository
author | cmonjeau |
---|---|
date | Mon, 06 Jul 2015 15:47:04 +0000 |
parents | a6beb4d4c417 |
children |
rev | line source |
---|---|
0 | 1 import sys, os, re |
2 | |
3 """ | |
4 | |
5 Created by Cyril Monjeaud | |
6 Cyril.Monjeaud@irisa.fr | |
7 | |
8 """ | |
9 | |
10 def __main__(): | |
11 | |
12 # open the outpt file | |
13 read_set=open(sys.argv[1], 'w') | |
14 read_set.write("//commet input file//\n") | |
15 | |
16 # write the files path | |
17 i = 2 | |
18 while i < len(sys.argv): | |
19 read_set.write(sys.argv[i+1]+":") | |
20 read_set.write(sys.argv[i].replace(",", ";")+"\n") | |
21 i = i+2 | |
22 | |
23 # close output file | |
24 read_set.close() | |
25 | |
26 if __name__ == "__main__": __main__() |