2022-07-12 18:58:46 -07:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
import argparse
|
|
|
|
|
import pickle
|
|
|
|
|
|
2024-03-17 19:53:57 -04:00
|
|
|
from openpilot.selfdrive.car.docs import get_all_car_docs
|
2022-07-12 18:58:46 -07:00
|
|
|
|
|
|
|
|
|
2024-03-17 19:53:57 -04:00
|
|
|
def dump_car_docs(path):
|
2022-07-12 18:58:46 -07:00
|
|
|
with open(path, 'wb') as f:
|
2024-03-17 19:53:57 -04:00
|
|
|
pickle.dump(get_all_car_docs(), f)
|
2022-07-12 18:58:46 -07:00
|
|
|
print(f'Dumping car info to {path}')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
|
parser = argparse.ArgumentParser()
|
|
|
|
|
parser.add_argument("--path", required=True)
|
|
|
|
|
args = parser.parse_args()
|
2024-03-17 19:53:57 -04:00
|
|
|
dump_car_docs(args.path)
|