mirror of
				https://github.com/devine-dl/devine.git
				synced 2025-11-04 03:44:49 +00:00 
			
		
		
		
	No longer create an empty config in the user configs folder
This commit is contained in:
		
							parent
							
								
									de7122a179
								
							
						
					
					
						commit
						21687e6649
					
				@ -78,9 +78,9 @@ class Config:
 | 
			
		||||
 | 
			
		||||
# noinspection PyProtectedMember
 | 
			
		||||
config_path = Config._Directories.user_configs / Config._Filenames.root_config
 | 
			
		||||
if not config_path.is_file():
 | 
			
		||||
    Config._Directories.user_configs.mkdir(parents=True, exist_ok=True)
 | 
			
		||||
    config_path.write_text("")
 | 
			
		||||
config = Config.from_yaml(config_path)
 | 
			
		||||
if config_path.exists():
 | 
			
		||||
    config = Config.from_yaml(config_path)
 | 
			
		||||
else:
 | 
			
		||||
    config = Config()
 | 
			
		||||
 | 
			
		||||
__all__ = ("config",)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user