def CallSubProcess(*args, **kwargs):
 with open(os.devnull) as devnull_fd:
  retcode = subprocess.call(stdin=devnull_fd, *args, **kwargs)
 if (retcode != 0):
  print '@@@STEP_EXCEPTION@@@'
  sys.exit(1)

def CallSubProcess ( * args , ** kwargs ) : with open ( os . devnull ) as devnull_fd : retcode = subprocess . call ( stdin = devnull_fd , * args , ** kwargs ) if ( retcode != 0 ) : print '@@@STEP_EXCEPTION@@@' sys . exit ( 1 )
wrapper around subprocess .