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.
14 lines
250 B
14 lines
250 B
5 years ago
|
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"))
|