mirror of
				https://github.com/cookiecutter/cookiecutter-django.git
				synced 2025-11-04 01:47:28 +03:00 
			
		
		
		
	fiddling with licenses.json file pathing
This commit is contained in:
		
							parent
							
								
									c4ec9cd164
								
							
						
					
					
						commit
						6f7b3e34e4
					
				| 
						 | 
					@ -331,7 +331,7 @@ def handle_licenses():
 | 
				
			||||||
    with open(os.path.join("licenses", "-temporary-placeholder.txt")) as f:
 | 
					    with open(os.path.join("licenses", "-temporary-placeholder.txt")) as f:
 | 
				
			||||||
        selected_title = f.readline()
 | 
					        selected_title = f.readline()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    with open(os.path.join("cookiecutter-django", "licenses.json")) as f:
 | 
					    with open(os.path.join("..", "licenses.json")) as f:
 | 
				
			||||||
        titles_dict = json.load(f)
 | 
					        titles_dict = json.load(f)
 | 
				
			||||||
    # access the title to filename dictionary to find the correct file
 | 
					    # access the title to filename dictionary to find the correct file
 | 
				
			||||||
    # using a dictionary instead of looping reduces time complexity
 | 
					    # using a dictionary instead of looping reduces time complexity
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user