CMS 3D CMS Logo

Classes | Functions
electronCompare Namespace Reference

Classes

class  flushfile
 

Functions

def mysystem (command, apply=1)
 

Function Documentation

def electronCompare.mysystem (   command,
  apply = 1 
)

Definition at line 32 of file electronCompare.py.

References cmsRelvalreport.exit, and edm.print().

Referenced by electronCompare.flushfile.write().

32 def mysystem(command,apply=1):
33  print(command)
34  if apply==1: return os.system(command)
35  elif apply==0: return 0
36  else:
37  print('[electronStore.py] UNSUPPORTED ARGUMENT VALUE FOR mysystem(,apply):',apply)
38  exit(1)
39 
40 
41 #============================================
42 # force immediate flushing of stdout
43 #============================================
44 
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:65
def mysystem(command, apply=1)