28 |
|
datasets = (row['dataset']).split(',') |
29 |
|
if len(datasets) > 1 : |
30 |
|
for dset in datasets : |
31 |
< |
path = (row['rpath'])+string.replace(dset[1:], '/', '.') |
31 |
> |
path = (row['rpath'])+'/'+string.replace(dset[1:], '/', '.') |
32 |
|
paths.append(path) |
33 |
|
shortName = (string.split(dset, '/'))[1] + "_" + (string.split(dset, '/'))[2] |
34 |
|
shortName = string.replace(shortName,'-','_') |
52 |
|
# print "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" |
53 |
|
# print "\tPath: " + path |
54 |
|
|
55 |
< |
prefix = '\n' + '\t' + "\"dcap://gfe02.grid.hep.ph.ic.ac.uk:22128/" + path[22:] |
55 |
> |
prefix = '\n' + '\t' + "\"dcap://gfe02.grid.hep.ph.ic.ac.uk:22128/" + path + '/' |
56 |
|
suffix = '.root\" ,' |
57 |
|
|
58 |
|
temp = commands.getstatusoutput("lcg-ls srm://gfe02.grid.hep.ph.ic.ac.uk:8443/srm/managerv2?SFN=" + path + "/ | grep -E SusyCAF_Tree_[0-9]\{1\}[0-9]\{0,1\}[0-9]\{0,1\}_[0-9] -o") |
77 |
|
toRemove.reverse() |
78 |
|
for i in toRemove : |
79 |
|
del infile[i] |
80 |
< |
|
80 |
> |
|
81 |
|
outfile = open(shortName+'.py','w') |
82 |
|
|
83 |
|
filenames = [] |