CMS 3D CMS Logo

Classes | Functions
uploadPayloads Namespace Reference

Classes

class  FileObj
 

Functions

def main ()
 

Function Documentation

def uploadPayloads.main ( )

Definition at line 13 of file uploadPayloads.py.

References split, and CommonMethods.uploadSqliteFile().

13 def main():
14  payloadDir = "./Payloads_Repro2010Nov09/"
15  aCommand = "ls " + payloadDir + " | grep BeamSpotObjects_2009_LumiBased_ | grep txt"
16  output = commands.getstatusoutput( aCommand )
17  listOfFiles = output[1].split('\n')
18 # print listOfFiles
19  dropbox = "/DropBox"
20  for fileName in listOfFiles:
21  fileNameRoot = fileName[0:len(fileName)-4]
22  print fileNameRoot
23  uploadSqliteFile(payloadDir, fileNameRoot, dropbox)
24 
25 
26 
27 
def uploadSqliteFile(sqliteFileDirName, sqliteFileName, dropbox="/DropBox")
double split
Definition: MVATrainer.cc:139