All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
launcher.py
Go to the documentation of this file.
1 # -*- coding: utf-8 -*-
2 
3 from subprocess import *
4 import subprocess
5 import os
6 
7 #-------------------------------------------------------------------------#
8 
9 def main():
10 
11  print 'starting'
12  import dependencyAnalysis as DA
13 
14  dir = "./newFormat"
15  fileList = sorted([ l for l in os.listdir(dir) if not l.startswith('.')])
16  for l in fileList:
17  n=fileList.index(l)
18  l = dir+'/'+l
19  fileList[n]=l
20 
21  testList = ''
22  for l in fileList :
23  testList+= l+" "
24 
25 # print DA.sniffer('/afs/cern.ch/user/v/valentin/workspace/Gaudi/GaudiExamples/tests/qmtest')\
26  proc= Popen(['/afs/cern.ch/user/v/valentin/workspace/Gaudi/build.x86_64-slc6-gcc48-opt/run', "/afs/cern.ch/sw/lcg/external/Python/2.7.3/x86_64-slc6-gcc48-opt/bin/python", '/afs/cern.ch/user/v/valentin/workspace/Gaudi/GaudiExamples/tests/qmtest/ScriptTest_V6.py']+fileList)
27  proc.wait()
28 
29  print 'end'
30 
31 main()
def main
Definition: launcher.py:9