Files
sunnypilot/selfdrive/debug/dump_car_info.py
Shane Smiskol c862387703 compatibility docs: print diff from PR (#24941)
* print docs diff

* revert car changes

* cause a diff

* temp so it works

* text diff

* tier inline is a bit too much

* comments

* fix

* use paths

* fix

* temp

* temp

* diff

* fix

* remove something

* more text diff

* Delete comment if outdated

* Smaller diff

* remove

* no diff

* Don't try to run on fork PRs

* cause some errors

* Fix

* Fix

* Doesn't support env in job if, only step if

* in case file was moved, don't throw error

* See if this does what I think it does

* See if this does what I think it does

* should work

* change something

* revert

* uncomment

* no comment

* this shouldn't fail

* rename to base

* Remove true

* Remove other true
old-commit-hash: aadaaabd54
2022-07-12 18:58:46 -07:00

19 lines
406 B
Python
Executable File

#!/usr/bin/env python3
import argparse
import pickle
from selfdrive.car.docs import get_all_car_info
def dump_car_info(path):
with open(path, 'wb') as f:
pickle.dump(get_all_car_info(), f)
print(f'Dumping car info to {path}')
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument("--path", required=True)
args = parser.parse_args()
dump_car_info(args.path)