4 def mydir(arg
, dirname
, names
):
5 files
= [os
.path
.normpath(os
.path
.join(dirname
, file)) for file in names
]
7 if filename
[-3:]=='pos':
8 changeposfile
.append(open(filename
,"r"))
17 os
.path
.walk(path
, mydir
, 0)
19 w
= open("sum.changepos","w")
22 for file in changeposfile
:
24 item
= line
.split('\t')
25 if not sum.has_key(item
[0]):
26 sum.update({item
[0]:0})
28 sum[item
[0]]+=len(item
)-2