Initial commit for release v2.0.0
A lot of work-in-progress and far from complete. Lots of improvements related to user-friendliness, fully new web-UI. Better infrastructure.... more coming soon
This commit is contained in:
		
							
								
								
									
										16
									
								
								server/app/config_loader.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								server/app/config_loader.py
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| from inkycal.modules import * | ||||
|  | ||||
| # get list of all modules inside inkycal-modules folder | ||||
| modules = [i for i in dir() if i[0].isupper()] | ||||
|  | ||||
| # Add the config of each module to the list settings | ||||
| settings = [] | ||||
|  | ||||
| for module in modules: | ||||
|     command = f"conf = {module}.get_config()" | ||||
|     exec(command) | ||||
|     settings.append(conf) | ||||
|  | ||||
| # return the config of all modules for the web-ui | ||||
| def get_all_config(): | ||||
|     return settings | ||||
		Reference in New Issue
	
	Block a user