[B] error in config path

This commit is contained in:
telegnom 2017-10-02 16:12:13 +02:00
parent 90188d040a
commit 06cf35f75b

View File

@ -133,9 +133,9 @@ if __name__ == "__main__":
dirname, filename = os.path.split(os.path.abspath(__file__))
conf = configparser.ConfigParser()
try:
conf.read(os.path.join([dirname, "powerpi.local.conf"]))
conf.read(os.path.join(dirname, "powerpi.local.conf"))
except:
conf.read(os.path.join([dirname, "powerpi.conf"]))
conf.read(os.path.join(dirname, "powerpi.conf"))
log.warning('using global config. Use powerpi.local.conf instead')
conf.sections()
transconf = conf['transport']