mirror of
				https://github.com/KevinMidboe/bulk-downloader-for-reddit.git
				synced 2025-10-29 17:40:15 +00:00 
			
		
		
		
	Hopefully, fixed the config.json bug
This commit is contained in:
		| @@ -672,13 +672,12 @@ def main(): | |||||||
|     except ProgramModeError as err: |     except ProgramModeError as err: | ||||||
|         PromptUser() |         PromptUser() | ||||||
|  |  | ||||||
|     if not Path(GLOBAL.configDirectory).is_dir(): |     if not Path(GLOBAL.defaultConfigDirectory).is_dir(): | ||||||
|         os.makedirs(GLOBAL.configDirectory) |         os.makedirs(GLOBAL.defaultConfigDirectory) | ||||||
|  |  | ||||||
|     if Path("config.json").exists(): |     if Path("config.json").exists(): | ||||||
|         GLOBAL.configDirectory = Path("config.json") |         GLOBAL.configDirectory = Path("config.json") | ||||||
|     else: |     else: | ||||||
|         os.makedirs(GLOBAL.defaultConfigDirectory) |  | ||||||
|         GLOBAL.configDirectory = GLOBAL.defaultConfigDirectory  / "config.json" |         GLOBAL.configDirectory = GLOBAL.defaultConfigDirectory  / "config.json" | ||||||
|  |  | ||||||
|     GLOBAL.config = getConfig(GLOBAL.configDirectory) |     GLOBAL.config = getConfig(GLOBAL.configDirectory) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user