Add a couple of handy debugging statements for config file/dir problems
This commit is contained in:
parent
b054402048
commit
7253eda0c8
|
@ -513,6 +513,7 @@ class ConfigBase(Borg):
|
||||||
return
|
return
|
||||||
|
|
||||||
filename = os.path.join(get_config_dir(), 'config')
|
filename = os.path.join(get_config_dir(), 'config')
|
||||||
|
dbg('looking for config file: %s' % filename)
|
||||||
try:
|
try:
|
||||||
configfile = open(filename, 'r')
|
configfile = open(filename, 'r')
|
||||||
except Exception, ex:
|
except Exception, ex:
|
||||||
|
|
|
@ -174,6 +174,7 @@ def get_config_dir():
|
||||||
except KeyError:
|
except KeyError:
|
||||||
configdir = os.path.join(os.path.expanduser('~'), '.config')
|
configdir = os.path.join(os.path.expanduser('~'), '.config')
|
||||||
|
|
||||||
|
dbg('Found config dir: %s' % configdir)
|
||||||
return(os.path.join(configdir, 'terminator'))
|
return(os.path.join(configdir, 'terminator'))
|
||||||
|
|
||||||
def dict_diff(reference, working):
|
def dict_diff(reference, working):
|
||||||
|
|
Loading…
Reference in New Issue