From ed031314a9556985f1db9861804399b95bf78085 Mon Sep 17 00:00:00 2001
From: Hannes Feldt <feldt@astron.nl>
Date: Tue, 8 Oct 2024 11:30:47 +0200
Subject: [PATCH] fix

---
 pypcc/yamlconfig.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pypcc/yamlconfig.py b/pypcc/yamlconfig.py
index a7d582d..02464b8 100644
--- a/pypcc/yamlconfig.py
+++ b/pypcc/yamlconfig.py
@@ -3,6 +3,7 @@ import struct
 import time
 import logging
 import sys
+import pathlib
 if sys.version_info < (3,9):
  import importlib_resources
 else:
@@ -32,7 +33,7 @@ class yamlconfig():
         if yamlfile.split('.')[-1]=='yaml':
             self.conf=yaml.load(open(yamlfile), Loader=yaml.FullLoader)
         else:
-            pkg_data_file =  "/etc/hwtr/" + (yamlfile+'.yaml')
+            pkg_data_file =  pathlib.PurePath("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