added first browser test, tests if circles opens out of ot the box
This commit is contained in:
		
							parent
							
								
									b62e613e8e
								
							
						
					
					
						commit
						02fa6dd558
					
				
					 7 changed files with 73 additions and 4 deletions
				
			
		|  | @ -78,7 +78,7 @@ def enable(name, start_event = True): | |||
|             else: | ||||
|                 enabled_plugins.append(name) | ||||
|                 config.set('plugins.enabled', enabled_plugins, savefile=True) | ||||
|                  | ||||
| 
 | ||||
|                 if start_event is True: | ||||
|                     start(name) | ||||
|                 return True | ||||
|  | @ -174,7 +174,7 @@ def import_module_from_file(full_path_to_module): | |||
|     module_name, module_ext = os.path.splitext(module_file) | ||||
| 
 | ||||
|     module_name = module_dir # Module name must be unique otherwise it will get written in other imports | ||||
|      | ||||
| 
 | ||||
|     # Get module "spec" from filename | ||||
|     spec = importlib.util.spec_from_file_location(module_name,full_path_to_module) | ||||
| 
 | ||||
|  | @ -215,6 +215,7 @@ def get_enabled_plugins(): | |||
|     ''' | ||||
| 
 | ||||
|     check() | ||||
|     config.reload() | ||||
| 
 | ||||
|     return list(config.get('plugins.enabled', list())) | ||||
| 
 | ||||
|  |  | |||
|  | @ -4,6 +4,7 @@ Identify a data directory for Onionr | |||
| """ | ||||
| import os | ||||
| import platform | ||||
| import uuid | ||||
| """ | ||||
|     This program is free software: you can redistribute it and/or modify | ||||
|     it under the terms of the GNU General Public License as published by | ||||
|  | @ -27,6 +28,7 @@ def identify_home() -> str: | |||
|     """ | ||||
|     path = os.environ.get('ONIONR_HOME', None) | ||||
| 
 | ||||
| 
 | ||||
|     if path is not None and not os.getcwd().endswith('src') \ | ||||
|             and 'test' not in path: | ||||
|         path = 'src/' + path | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue