mirror of
				https://github.com/mfulz/qmk_firmware.git
				synced 2025-10-30 21:02:32 +01:00 
			
		
		
		
	Fix bug when 'info.json' lookup escapes keyboard dir (#16734)
This commit is contained in:
		
							parent
							
								
									084df6a288
								
							
						
					
					
						commit
						55e5daa868
					
				| @ -753,9 +753,9 @@ def find_info_json(keyboard): | ||||
| 
 | ||||
|     # Add in parent folders for least specific | ||||
|     for _ in range(5): | ||||
|         info_jsons.append(keyboard_parent / 'info.json') | ||||
|         if keyboard_parent.parent == base_path: | ||||
|         if keyboard_parent == base_path: | ||||
|             break | ||||
|         info_jsons.append(keyboard_parent / 'info.json') | ||||
|         keyboard_parent = keyboard_parent.parent | ||||
| 
 | ||||
|     # Return a list of the info.json files that actually exist | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Erovia
						Erovia