instrument=main: for multiple instruments (on linse-c)
This commit is contained in:
@ -5,7 +5,6 @@ from os.path import expanduser
|
||||
# look for sehistory and frappy at usual locations in home directory
|
||||
sys.path.extend([expanduser('~'), expanduser('~/frappy')])
|
||||
import argparse
|
||||
import socket
|
||||
from webserver import server
|
||||
from base import Client
|
||||
from influxgraph import InfluxGraph
|
||||
@ -41,6 +40,5 @@ def parseArgv(argv):
|
||||
|
||||
args = parseArgv(sys.argv[1:])
|
||||
|
||||
instrument = socket.gethostname().split('.')[0] if args.instrument == 'HOST' else args.instrument
|
||||
|
||||
instrument = None if args.instrument=='main' else args.instrument
|
||||
server.run(int(args.port), SEHistory(), InfluxGraph, Client, single_instrument=instrument, secop=SecopInteractor)
|
||||
|
Reference in New Issue
Block a user