mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 03:03:57 +08:00
* Prototyping comma api call * Adding nui command * Fixing hard coded vals * Adding generalized nui changes * Added both public and private api support * Removing debug statement * Chaning private api tag to use env variables * FrameReader change for string parsing
14 lines
250 B
Python
14 lines
250 B
Python
import json
|
|
import os
|
|
import sys
|
|
|
|
from tools.lib.route import Route
|
|
|
|
route_name = sys.argv[1]
|
|
routes = Route(route_name)
|
|
data_dump = {
|
|
"camera":routes.camera_paths(),
|
|
"logs":routes.log_paths()
|
|
}
|
|
|
|
json.dump(data_dump, open("routes.json", "w")) |