diff --git a/pypcc/yamlconfig.py b/pypcc/yamlconfig.py index 02464b86cb09c22c2d2cf4ac4c306866ca33750c..5f35b1ef263daefedd18f68cc1e30edc5f9c6e93 100644 --- a/pypcc/yamlconfig.py +++ b/pypcc/yamlconfig.py @@ -33,7 +33,7 @@ class yamlconfig(): if yamlfile.split('.')[-1]=='yaml': self.conf=yaml.load(open(yamlfile), Loader=yaml.FullLoader) 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.expand_variables() # print([[v['name'],v.get('devreg')] for v in var1])