You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
			
				
					19 lines
				
				416 B
			
		
		
			
		
	
	
					19 lines
				
				416 B
			| 
											3 years ago
										 | #!/usr/bin/env python3
 | ||
|  | import argparse
 | ||
|  | import pickle
 | ||
|  | 
 | ||
| 
											2 years ago
										 | from openpilot.selfdrive.car.docs import get_all_car_docs
 | ||
| 
											3 years ago
										 | 
 | ||
|  | 
 | ||
| 
											2 years ago
										 | def dump_car_docs(path):
 | ||
| 
											3 years ago
										 |   with open(path, 'wb') as f:
 | ||
| 
											2 years ago
										 |     pickle.dump(get_all_car_docs(), f)
 | ||
| 
											3 years ago
										 |   print(f'Dumping car info to {path}')
 | ||
|  | 
 | ||
|  | 
 | ||
|  | if __name__ == "__main__":
 | ||
|  |   parser = argparse.ArgumentParser()
 | ||
|  |   parser.add_argument("--path", required=True)
 | ||
|  |   args = parser.parse_args()
 | ||
| 
											2 years ago
										 |   dump_car_docs(args.path)
 |