us 'this' for main instrument

This commit is contained in:
2026-03-19 11:37:34 +01:00
parent 51bd8c2c4c
commit cdd5f60e14

View File

@@ -34,11 +34,11 @@ def parseArgv(argv):
'--instrument',
action='store',
help="instrument, if running on an instrument computer\n"
"if the value is HOST, take the host name as instrument name",
"if the value is 'this', take the host name as instrument name",
default=None)
return parser.parse_args(argv)
args = parseArgv(sys.argv[1:])
instrument = None if args.instrument=='main' else args.instrument
instrument = None if args.instrument=='this' else args.instrument
server.run(int(args.port), SEHistory(), InfluxGraph, Client, single_instrument=instrument, secop=SecopInteractor)