gorram it
This commit is contained in:
		
							parent
							
								
									7dd42eaf4d
								
							
						
					
					
						commit
						76c898588f
					
				| @ -273,7 +273,7 @@ class Backup(object): | |||||||
|                     import importlib |                     import importlib | ||||||
|                     _orig_path = sys.path |                     _orig_path = sys.path | ||||||
|                     for plugin in repo['plugins']: |                     for plugin in repo['plugins']: | ||||||
|                         self.logging.debug('Initializing plugin: {0}'.format(plugin)) |                         self.logger.debug('Initializing plugin: {0}'.format(plugin)) | ||||||
|                         if repo['plugins'][plugin]['path']: |                         if repo['plugins'][plugin]['path']: | ||||||
|                             sys.path.insert(1, os.path.abspath(os.path.expanduser(repo['plugins'][plugin]['path']))) |                             sys.path.insert(1, os.path.abspath(os.path.expanduser(repo['plugins'][plugin]['path']))) | ||||||
|                         optools_tmpmod = importlib.import_module(plugin, package = None) |                         optools_tmpmod = importlib.import_module(plugin, package = None) | ||||||
| @ -284,7 +284,7 @@ class Backup(object): | |||||||
|                         del(sys.modules[plugin]) |                         del(sys.modules[plugin]) | ||||||
|                         del(optools_tmpmod) |                         del(optools_tmpmod) | ||||||
|                         sys.path = _orig_path |                         sys.path = _orig_path | ||||||
|                         self.logging.debug('Finished plugin: {0}'.format(plugin)) |                         self.logger.debug('Finished plugin: {0}'.format(plugin)) | ||||||
|                 # This is where we actually do the thing. |                 # This is where we actually do the thing. | ||||||
|                 _cmd = [self.borgbin, |                 _cmd = [self.borgbin, | ||||||
|                         '--log-json', |                         '--log-json', | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 brent s
						brent s