diff --git a/pypcc/yamlconfig.py b/pypcc/yamlconfig.py
index 5f35b1ef263daefedd18f68cc1e30edc5f9c6e93..81864695760f12d7570f03012e60ef009cbfa542 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.Path("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])