Add a couple of handy debugging statements for config file/dir problems

This commit is contained in:
Chris Jones 2010-10-15 12:40:29 +01:00
parent b054402048
commit 7253eda0c8
2 changed files with 2 additions and 0 deletions

View File

@ -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:

View File

@ -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):