def __loadDebuggerScript(self, scriptPathName): if not os.path.exists(scriptPathName): self.__handler.handleLog('Debugger script file not exists. %s' %(scriptPathName), wx.LOG_Error) return try: self.__handler.handleLoadDebuggerScriptBegin() self.__handler.handleLog('Load debugger script: %s' %(scriptPathName)) scriptFile = DebuggerScriptFile(scriptPathName) ret, info = scriptFile.parse() if ret: self.__handler.handleLoadDebuggerScriptEnd(info) else: self.__handler.handleException(info) except Exception, e: self.__handler.handleException(e)
def __saveDebuggerScript(self, scriptPathName, commandsInfo): scriptFile = DebuggerScriptFile(scriptPathName) scriptFile.save(commandsInfo)