mirror of
				https://github.com/KevinMidboe/bulk-downloader-for-reddit.git
				synced 2025-10-29 17:40:15 +00:00 
			
		
		
		
	Fixed the bug concerning config.json
This commit is contained in:
		| @@ -23,7 +23,7 @@ from src.tools import (GLOBAL, createLogFile, jsonFile, nameCorrector, | ||||
|  | ||||
| __author__ = "Ali Parlakci" | ||||
| __license__ = "GPL" | ||||
| __version__ = "1.6.5" | ||||
| __version__ = "1.6.5.1" | ||||
| __maintainer__ = "Ali Parlakci" | ||||
| __email__ = "parlakciali@gmail.com" | ||||
|  | ||||
| @@ -675,8 +675,11 @@ def main(): | ||||
|     if not Path(GLOBAL.configDirectory).is_dir(): | ||||
|         os.makedirs(GLOBAL.configDirectory) | ||||
|  | ||||
|     GLOBAL.configDirectory = Path("config.json") if Path("config.json").exists() \ | ||||
|                     else GLOBAL.defaultConfigDirectory  / "config.json" | ||||
|     if Path("config.json").exists(): | ||||
|         GLOBAL.configDirectory = Path("config.json") | ||||
|     else: | ||||
|         os.makedirs(GLOBAL.defaultConfigDirectory) | ||||
|         GLOBAL.configDirectory = GLOBAL.defaultConfigDirectory  / "config.json" | ||||
|  | ||||
|     GLOBAL.config = getConfig(GLOBAL.configDirectory) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user