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 31 of file electronCompare.py.

References cmsRelvalreport.exit.

Referenced by electronCompare.flushfile.write().

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