def call_program(self, name, *arguments):
        """
        Calls the shell program on the PATH with the given arguments.
        
        """
        verbosity = self.options.get("verbosity", 1)
        with self.devnull as null:
            try:
                subprocess.check_call((name,) + tuple(arguments), 
                    stdout=null if verbosity == 0 else self.stdout,
                    stderr=null if verbosity == 0 else self.stderr)
            except subprocess.CalledProcessError as error:
                raise management.CommandError(
                    "{name:s} failed with exit code {code:d}".format(
                        name=name, code=error.returncode))
        return 0
def call_program ( self , name , * arguments ) : verbosity = self . options . get ( "verbosity" , 1 ) with self . devnull as null : try : subprocess . check_call ( ( name , ) + tuple ( arguments ) , stdout = null if verbosity == 0 else self . stdout , stderr = null if verbosity == 0 else self . stderr ) except subprocess . CalledProcessError as error : raise management . CommandError ( "{name:s} failed with exit code {code:d}" . format ( name = name , code = error . returncode ) ) return 0
Calls the shell program on the PATH with the given arguments.