[B] error in config path
This commit is contained in:
parent
90188d040a
commit
06cf35f75b
@ -133,9 +133,9 @@ if __name__ == "__main__":
|
|||||||
dirname, filename = os.path.split(os.path.abspath(__file__))
|
dirname, filename = os.path.split(os.path.abspath(__file__))
|
||||||
conf = configparser.ConfigParser()
|
conf = configparser.ConfigParser()
|
||||||
try:
|
try:
|
||||||
conf.read(os.path.join([dirname, "powerpi.local.conf"]))
|
conf.read(os.path.join(dirname, "powerpi.local.conf"))
|
||||||
except:
|
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')
|
log.warning('using global config. Use powerpi.local.conf instead')
|
||||||
conf.sections()
|
conf.sections()
|
||||||
transconf = conf['transport']
|
transconf = conf['transport']
|
||||||
|
Loading…
x
Reference in New Issue
Block a user