Public Member Functions | |
def | __init__ |
def | initTask |
def | run |
Public Attributes | |
configs | |
dir | |
psets |
Definition at line 3 of file CmsswTask.py.
def CmsswTask::CmsswTask::__init__ | ( | self, | |
dir, | |||
configs, | |||
psets = None |
|||
) |
Definition at line 4 of file CmsswTask.py.
def CmsswTask::CmsswTask::initTask | ( | self | ) |
Definition at line 10 of file CmsswTask.py.
def CmsswTask::CmsswTask::run | ( | self | ) |
Definition at line 17 of file CmsswTask.py.
00018 : 00019 if not os.path.exists(self.dir): os.makedirs(self.dir) 00020 cwd = os.getcwd() 00021 for pset in self.configs: 00022 os.chdir(self.dir) 00023 if not os.path.exists(pset): raise RuntimeError,'%s not found in dir %s' % (pset,os.getcwd()) 00024 00025 cmd = 'cmsRun %s' % pset 00026 print "Running", cmd, "in dir", self.dir 00027 os.system(cmd) 00028 os.chdir(cwd)
Definition at line 4 of file CmsswTask.py.
Definition at line 4 of file CmsswTask.py.
Definition at line 4 of file CmsswTask.py.