Debug output for config file search
Signed-off-by: martin f. krafft <madduck@madduck.net>
diff --git a/reclass/config.py b/reclass/config.py
index 4d0dab4..9243a46 100644
--- a/reclass/config.py
+++ b/reclass/config.py
@@ -154,11 +154,17 @@
return options
+def vvv(msg):
+ #print >>sys.stderr, msg
+ pass
+
+
def find_and_read_configfile(filename=CONFIG_FILE_NAME,
dirs=CONFIG_FILE_SEARCH_PATH):
for d in dirs:
f = os.path.join(d, filename)
if os.access(f, os.R_OK):
+ vvv('Using config file: {0}'.format(f))
return yaml.safe_load(file(f))
elif os.path.isfile(f):
raise PermissionsError('cannot read %s' % f)