mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-28 06:33:55 +08:00
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"))
|