Mercurial > repos > cmonjeau > commet
comparison prepare_commet.py @ 0:a6beb4d4c417
Imported from capsule None
author | cmonjeau |
---|---|
date | Fri, 05 Jun 2015 11:41:26 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:a6beb4d4c417 |
---|---|
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__() |