Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/fitting/models.py

    r1bcc48d re92a352  
    2323PLUGIN_LOG = os.path.join(os.path.expanduser("~"), '.sasview', PLUGIN_DIR, 
    2424                          "plugins.log") 
    25 PLUGIN_NAME_BASE = '[plug-in] ' 
    2625 
    2726def get_model_python_path(): 
     
    182181            try: 
    183182                model = load_custom_model(path) 
    184                 model.name = PLUGIN_NAME_BASE + model.name 
     183                model.name = "[plug-in] "+model.name 
    185184                plugins[model.name] = model 
    186185            except Exception: 
     
    321320        if len(new_plugins) > 0: 
    322321            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 
    326326            self.model_combobox.set_list("Plugin Models", self.plugins) 
    327327            return self.model_combobox.get_list() 
Note: See TracChangeset for help on using the changeset viewer.