00001 00002 import commands 00003 import sys, os 00004 import glob 00005 00006 l1 = glob.glob('data_1tb/*/mechanism_info.pkl') 00007 l2 = [] 00008 for d in l1: 00009 l2.append('/'.join(['aggregated_pkls_Feb11']+d.split('/')[1:])) 00010 00011 for d1,d2 in zip(l1,l2): 00012 os.system('cp %s %s'%(d1, d2)) 00013