us 'this' for main instrument
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user