Try to reload first; if fails, then not in path (addon), and try new import
svn: r15403
This commit is contained in:
		@@ -256,11 +256,11 @@ class BasePluginManager(object):
 | 
			
		||||
        """
 | 
			
		||||
        Reloads modules that might not be in the path.
 | 
			
		||||
        """
 | 
			
		||||
        if pdata.mod_name in sys.modules:
 | 
			
		||||
            del sys.modules[pdata.mod_name]
 | 
			
		||||
        try:
 | 
			
		||||
            reload(module)
 | 
			
		||||
        except:
 | 
			
		||||
            if pdata.mod_name in sys.modules:
 | 
			
		||||
                del sys.modules[pdata.mod_name]
 | 
			
		||||
            module = self.import_plugin(pdata)
 | 
			
		||||
        return module
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user