From 22a1a772f4396a02ddbe8c877a029b0e8902cb91 Mon Sep 17 00:00:00 2001 From: Hannes Feldt <feldt@astron.nl> Date: Tue, 8 Oct 2024 11:51:42 +0200 Subject: [PATCH] fix --- pypcc/yamlconfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pypcc/yamlconfig.py b/pypcc/yamlconfig.py index 02464b8..5f35b1e 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]) -- GitLab