Changes in src/sas/sasgui/perspectives/fitting/models.py [1bcc48d:e92a352] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/fitting/models.py
r1bcc48d re92a352 23 23 PLUGIN_LOG = os.path.join(os.path.expanduser("~"), '.sasview', PLUGIN_DIR, 24 24 "plugins.log") 25 PLUGIN_NAME_BASE = '[plug-in] '26 25 27 26 def get_model_python_path(): … … 182 181 try: 183 182 model = load_custom_model(path) 184 model.name = PLUGIN_NAME_BASE +model.name183 model.name = "[plug-in] "+model.name 185 184 plugins[model.name] = model 186 185 except Exception: … … 321 320 if len(new_plugins) > 0: 322 321 for name, plug in new_plugins.iteritems(): 323 self.stored_plugins[name] = plug 324 self.plugins.append(plug) 325 self.model_dictionary[name] = plug 322 if name not in self.stored_plugins.keys(): 323 self.stored_plugins[name] = plug 324 self.plugins.append(plug) 325 self.model_dictionary[name] = plug 326 326 self.model_combobox.set_list("Plugin Models", self.plugins) 327 327 return self.model_combobox.get_list()
Note: See TracChangeset
for help on using the changeset viewer.