(path, lst, err)
| 188 | return (pg, subtree) |
| 189 | |
| 190 | def extend_widgets(path, lst, err): |
| 191 | rst = [] |
| 192 | for i in lst: |
| 193 | try: |
| 194 | rpath = path.replace('/', '.').replace('\\','.') |
| 195 | #rpath = rpath[rpath.index('imagepy.'):] |
| 196 | plg = __import__('imagepy.'+rpath+'.'+i,'','',['']) |
| 197 | rst.append(plg.Plugin) |
| 198 | except Exception as e: |
| 199 | err.append((path, i, sys.exc_info()[1])) |
| 200 | for i in rst:WidgetsManager.add(i) |
| 201 | return rst |
| 202 | |
| 203 | def sort_widgets(catlog, lst): |
| 204 | rst = [] |
no test coverage detected