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
|
||
|
|
||
1 year ago
|
from openpilot.selfdrive.car.docs import get_all_car_docs
|
||
3 years ago
|
|
||
|
|
||
1 year ago
|
def dump_car_docs(path):
|
||
3 years ago
|
with open(path, 'wb') as f:
|
||
1 year 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()
|
||
1 year ago
|
dump_car_docs(args.path)
|