change config to env, add ci-script
All checks were successful
ci/woodpecker/tag/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/tag/woodpecker Pipeline was successful
This commit is contained in:
@ -8,7 +8,7 @@ from ModbusHandler import ModbusHandler
|
||||
from MqttEventPublisher import MqttEventPublisher, mqttEventPublisherStart
|
||||
from MqttPeriodPublisher import MqttPeriodPublisher
|
||||
from MqttCoilSubscriber import MqttCoilSubscriber
|
||||
|
||||
from config import Config
|
||||
|
||||
deathBell = threading.Event()
|
||||
|
||||
@ -21,18 +21,7 @@ def exceptHook(args):
|
||||
|
||||
logger.info("DigitalTwin1 starting")
|
||||
|
||||
parser = argparse.ArgumentParser(description="DigitalTwin1")
|
||||
parser.add_argument('--config', '-f',
|
||||
help='Config file, default is $pwd/config/config.ini',
|
||||
required=False,
|
||||
default='./config/config.ini')
|
||||
args = parser.parse_args()
|
||||
|
||||
config = configparser.ConfigParser()
|
||||
config.read(args.config)
|
||||
|
||||
|
||||
|
||||
config = Config()
|
||||
|
||||
processImage = ProcessImage()
|
||||
|
||||
|
Reference in New Issue
Block a user