(self, path)
return (None, s)
Returns an (error, script) tuple.
Returns an (error, script) tuple.
Returns an ( error script ) tuple .
def get_script(self, path):
        """
            Returns an (error, script) tuple.
        """
        s = script.Script(path, ScriptContext(self))
        try:
            s.load()
        except script.ScriptError, v:
            return (v.args[0], None)
        ret = s.run("start")
        if not ret[0] and ret[1]:
            return ("Error in script start:\n\n" + ret[1][1], None)
        return (None, s)
def get_script ( self , path ) : s = script . Script ( path , ScriptContext ( self ) ) try : s . load ( ) except script . ScriptError , v : return ( v . args [ 0 ] , None ) ret = s . run ( "start" ) if not ret [ 0 ] and ret [ 1 ] : return ( "Error in script start:\n\n" + ret [ 1 ] [ 1 ] , None ) return ( None , s )