CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
uploadPayloads.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 import sys,os,commands
3 from CommonMethods import *
4 
5 class FileObj:
6  def __init__(self):
7  self.run = 0
8  self.iovSince = 0
9  self.fileName = ''
10 
11 
12 
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 
28 if __name__ == "__main__":
29  main()
Definition: main.py:1
double split
Definition: MVATrainer.cc:139