(self, cmd, **kwargs)
return subprocess.call(cmd, **kwargs)
Execute one shell command
Execute one shell command
Execute one shell command
def call(self, cmd, **kwargs):
        """Execute one shell command"""
        if not cmd[0].startswith("/"):
            path = Config.conf["root_path"] + ":" + os.getenv("PATH", "")
            cmd[0] = self.find_inpath(cmd[0], path)
        kwargs["shell"] = False
        return subprocess.call(cmd, **kwargs)
def call ( self , cmd , * * kwargs ) : if not cmd [ 0 ] . startswith ( "/" ) : path = Config . conf [ "root_path" ] + ":" + os . getenv ( "PATH" , "" ) cmd [ 0 ] = self . find_inpath ( cmd [ 0 ] , path ) kwargs [ "shell" ] = False return subprocess . call ( cmd , * * kwargs )