def delete(self): global DISK_UPDATE delmsg = 'OK?%t|Delete key from memory' if DISK_UPDATE: delmsg = "%s and from disk" % delmsg if Draw.PupMenu(delmsg) == 1: Registry.RemoveKey(self.key, DISK_UPDATE) return True return False
else: exec_line = bsys.join(Blender.Get('scriptsdir'), SCRIPT_INFO.script.fname) Blender.Run(exec_line) keepon = True FMODE = False # called by Blender.ShowHelp(name) API function ? KEYNAME = '__help_browser' rd = Registry.GetKey(KEYNAME) if rd: rdscript = rd['script'] keepon = False Registry.RemoveKey(KEYNAME) for group in AllGroups: for script in group.get_scripts(): if rdscript == script.fname: parseit = parse_help_info(script) if parseit == True: keepon = True SCREEN = SCRIPT_SCREEN BEVT_LINK = range(20, len(SCRIPT_INFO.d['__url__']) + 20) BEVT_EMAIL = range(50, len(SCRIPT_INFO.d['__email__']) + 50) FMODE = True elif parseit == False: Draw.PupMenu("ERROR: script doesn't have proper help data") break