mirror of
				https://github.com/KevinMidboe/bulk-downloader-for-reddit.git
				synced 2025-10-29 17:40:15 +00:00 
			
		
		
		
	Added config file location as current directory
This commit is contained in:
		
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@@ -3,3 +3,4 @@ dist/
 | 
			
		||||
MANIFEST
 | 
			
		||||
__pycache__/
 | 
			
		||||
src/__pycache__/
 | 
			
		||||
config.json
 | 
			
		||||
@@ -657,7 +657,8 @@ def main():
 | 
			
		||||
 | 
			
		||||
    if not Path(GLOBAL.configDirectory).is_dir():
 | 
			
		||||
        os.makedirs(GLOBAL.configDirectory)
 | 
			
		||||
    GLOBAL.config = getConfig(GLOBAL.configDirectory / "config.json")
 | 
			
		||||
    GLOBAL.config = getConfig("config.json") if Path("config.json").exists() \
 | 
			
		||||
                    else getConfig(GLOBAL.configDirectory / "config.json")
 | 
			
		||||
 | 
			
		||||
    if GLOBAL.arguments.log is not None:
 | 
			
		||||
        logDir = Path(GLOBAL.arguments.log)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user