Commit 75454efb authored by Peter-Bernd Otte's avatar Peter-Bernd Otte

Update relais-control.py

parent 96c64719
......@@ -85,7 +85,7 @@ debug = True if args.verbosity>1 else False
if os.path.exists(args.config_file):
logger.debug("config file exists")
with open("config.yml", 'r') as ymlfile:
with open(args.config_file, 'r') as ymlfile:
cfg = yaml.full_load(ymlfile) # see https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation
for section in cfg:
......@@ -140,4 +140,4 @@ while True:
time.sleep((1-time.time() % 1) * sleepTime) #every second, even if the processing before took longer
client.disconnect()
client.loop_stop()
\ No newline at end of file
client.loop_stop()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment