CMS 3D CMS Logo

Classes | Functions
electronStore Namespace Reference

Classes

class  flushfile
 

Functions

def mysystem (command, apply=1)
 

Function Documentation

def electronStore.mysystem (   command,
  apply = 1 
)

Definition at line 33 of file electronStore.py.

References cmsRelvalreport.exit.

Referenced by electronStore.flushfile.write().

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