adjust for cluster deployment
This commit is contained in:
@@ -2,9 +2,8 @@ from MeterPublish import MeterPublish
|
||||
from RelaisSubscribe import RelaisSubscribe
|
||||
from ModbusBase import ModbusHandler
|
||||
from loguru import logger
|
||||
from config import Config
|
||||
import logging
|
||||
import argparse
|
||||
import configparser
|
||||
import threading
|
||||
|
||||
|
||||
@@ -23,15 +22,7 @@ def exceptHook(args):
|
||||
|
||||
logger.info("pv controller starting")
|
||||
|
||||
parser = argparse.ArgumentParser(description="pv controller")
|
||||
parser.add_argument('--config', '-f',
|
||||
help='Config file, default is $pwd/config.ini',
|
||||
required=False,
|
||||
default='./config.ini')
|
||||
args = parser.parse_args()
|
||||
|
||||
config = configparser.ConfigParser()
|
||||
config.read(args.config)
|
||||
config = Config()
|
||||
|
||||
modbusHandler = ModbusHandler(config)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user