annotate prepare_commet.py @ 1:0a09dd575d91

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