instrument=main: for multiple instruments (on linse-c)

This commit is contained in:
2025-05-20 15:09:16 +02:00
parent 6390d37ab4
commit 2ed1e3c292

View File

@ -5,7 +5,6 @@ from os.path import expanduser
# look for sehistory and frappy at usual locations in home directory # look for sehistory and frappy at usual locations in home directory
sys.path.extend([expanduser('~'), expanduser('~/frappy')]) sys.path.extend([expanduser('~'), expanduser('~/frappy')])
import argparse import argparse
import socket
from webserver import server from webserver import server
from base import Client from base import Client
from influxgraph import InfluxGraph from influxgraph import InfluxGraph
@ -41,6 +40,5 @@ def parseArgv(argv):
args = parseArgv(sys.argv[1:]) 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) server.run(int(args.port), SEHistory(), InfluxGraph, Client, single_instrument=instrument, secop=SecopInteractor)