From 7253eda0c81c90fa33dec8af2a60660e4af6d042 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Fri, 15 Oct 2010 12:40:29 +0100 Subject: [PATCH] Add a couple of handy debugging statements for config file/dir problems --- terminatorlib/config.py | 1 + terminatorlib/util.py | 1 + 2 files changed, 2 insertions(+) diff --git a/terminatorlib/config.py b/terminatorlib/config.py index 4acd12d4..150546a0 100755 --- a/terminatorlib/config.py +++ b/terminatorlib/config.py @@ -513,6 +513,7 @@ class ConfigBase(Borg): return filename = os.path.join(get_config_dir(), 'config') + dbg('looking for config file: %s' % filename) try: configfile = open(filename, 'r') except Exception, ex: diff --git a/terminatorlib/util.py b/terminatorlib/util.py index 393f9298..872b76d0 100755 --- a/terminatorlib/util.py +++ b/terminatorlib/util.py @@ -174,6 +174,7 @@ def get_config_dir(): except KeyError: configdir = os.path.join(os.path.expanduser('~'), '.config') + dbg('Found config dir: %s' % configdir) return(os.path.join(configdir, 'terminator')) def dict_diff(reference, working):