forked from M-Labs/artiq
master: add ddb/pdb args
This commit is contained in:
parent
54d85efc2a
commit
585bb236f8
|
@ -26,6 +26,11 @@ def get_argparser():
|
||||||
group.add_argument(
|
group.add_argument(
|
||||||
"--port-control", default=3251, type=int,
|
"--port-control", default=3251, type=int,
|
||||||
help="TCP port to listen to for control (default: %(default)d)")
|
help="TCP port to listen to for control (default: %(default)d)")
|
||||||
|
group = parser.add_argument_group("databases")
|
||||||
|
group.add_argument("-d", "--ddb", default="ddb.pyon",
|
||||||
|
help="device database file")
|
||||||
|
group.add_argument("-p", "--pdb", default="pdb.pyon",
|
||||||
|
help="parameter database file")
|
||||||
group = parser.add_argument_group("repository")
|
group = parser.add_argument_group("repository")
|
||||||
group.add_argument(
|
group.add_argument(
|
||||||
"-g", "--git", default=False, action="store_true",
|
"-g", "--git", default=False, action="store_true",
|
||||||
|
@ -59,8 +64,8 @@ def main():
|
||||||
loop = asyncio.get_event_loop()
|
loop = asyncio.get_event_loop()
|
||||||
atexit.register(lambda: loop.close())
|
atexit.register(lambda: loop.close())
|
||||||
|
|
||||||
ddb = FlatFileDB("ddb.pyon")
|
ddb = FlatFileDB(args.ddb)
|
||||||
pdb = FlatFileDB("pdb.pyon")
|
pdb = FlatFileDB(args.pdb)
|
||||||
rtr = Notifier(dict())
|
rtr = Notifier(dict())
|
||||||
log = Log(1000)
|
log = Log(1000)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue