Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-10-27 04:18:17

0001 #!/usr/bin/env python3
0002 from __future__ import print_function
0003 import sys,os,subprocess
0004 from CommonMethods import *
0005 
0006 class FileObj:
0007     def __init__(self):
0008         self.run      = 0
0009         self.iovSince = 0
0010         self.fileName = ''                 
0011 
0012                                                                         
0013 
0014 def main():
0015     payloadDir = "./Payloads_Repro2010Nov09/"
0016     aCommand  = "ls " + payloadDir + " | grep BeamSpotObjects_2009_LumiBased_ | grep txt"           
0017     output = subprocess.getstatusoutput( aCommand )
0018     listOfFiles = output[1].split('\n')                                                                              
0019 #    print listOfFiles
0020     dropbox = "/DropBox"
0021     for fileName in listOfFiles:
0022         fileNameRoot = fileName[0:len(fileName)-4]
0023         print(fileNameRoot)
0024         uploadSqliteFile(payloadDir, fileNameRoot, dropbox)
0025             
0026 
0027 
0028         
0029 if __name__ == "__main__":
0030     main()