mjcumming / ISY-Homie-Bridge

ISY to Homie bridge
MIT License
7 stars 5 forks source link

Config directory not found unless forward slashes are used #4

Closed bphillips09 closed 2 years ago

bphillips09 commented 3 years ago

On the latest Raspbian image, the service fails to start and throws an error here in isy_homie_start.py:

with open("\etc\isy_homie.yml", 'r') as ymlfile:
    cfg = yaml.full_load(ymlfile)

However, if forward-slashes are used in the file path instead, it works as intended:

with open("/etc/isy_homie.yml", 'r') as ymlfile:
    cfg = yaml.full_load(ymlfile)
mjcumming commented 2 years ago

fixed!