Skip to content
Snippets Groups Projects
Commit 22a1a772 authored by Hannes Feldt's avatar Hannes Feldt
Browse files

fix

parent ed031314
Branches
Tags 0.9.3
No related merge requests found
Pipeline #94964 failed
...@@ -33,7 +33,7 @@ class yamlconfig(): ...@@ -33,7 +33,7 @@ class yamlconfig():
if yamlfile.split('.')[-1]=='yaml': if yamlfile.split('.')[-1]=='yaml':
self.conf=yaml.load(open(yamlfile), Loader=yaml.FullLoader) self.conf=yaml.load(open(yamlfile), Loader=yaml.FullLoader)
else: else:
pkg_data_file = pathlib.PurePath("etc", "hwtr", (yamlfile+'.yaml')) pkg_data_file = pathlib.Path("etc", "hwtr", (yamlfile+'.yaml'))
self.conf=yaml.load(pkg_data_file.open(), Loader=yaml.FullLoader) self.conf=yaml.load(pkg_data_file.open(), Loader=yaml.FullLoader)
self.expand_variables() self.expand_variables()
# print([[v['name'],v.get('devreg')] for v in var1]) # print([[v['name'],v.get('devreg')] for v in var1])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment