(self, path)
Loads a script. Returns an error description if something went
            wrong. If path is None, the current script is terminated.
Loads a script. Returns an error description if something went
            wrong. If path is None, the current script is terminated.
Loads a script . Returns an error description if something went wrong . If path is None the current script is terminated .
def load_script(self, path):
        """
            Loads a script. Returns an error description if something went
            wrong. If path is None, the current script is terminated.
        """
        if path is None:
            self.run_script_hook("done")
            self.script = None
        else:
            r = self.get_script(path)
            if r[0]:
                return r[0]
            else:
                if self.script:
                    self.run_script_hook("done")
                self.script = r[1]
def load_script ( self , path ) : if path is None : self . run_script_hook ( "done" ) self . script = None else : r = self . get_script ( path ) if r [ 0 ] : return r [ 0 ] else : if self . script : self . run_script_hook ( "done" ) self . script = r [ 1 ]