parent
8c8cdb1e09
commit
9d97e21aa8
|
@ -153,11 +153,11 @@ class TerminatorConfValuestoreRC (TerminatorConfValuestore):
|
||||||
self.type = "RCFile"
|
self.type = "RCFile"
|
||||||
try:
|
try:
|
||||||
directory = os.environ['XDG_CONFIG_HOME']
|
directory = os.environ['XDG_CONFIG_HOME']
|
||||||
except:
|
except KeyError, e:
|
||||||
directory = os.path.join (os.path.expanduser("~"), ".config/terminator/")
|
dbg("Environment variable %s not found. defaulting to ~/.config" % e.message)
|
||||||
|
directory = os.path.join (os.path.expanduser("~"), ".config")
|
||||||
self.rcfilename = os.path.join(directory, "config")
|
self.rcfilename = os.path.join(directory, "terminator/config")
|
||||||
|
dbg("[RCFile] located at %s" % self.rcfilename)
|
||||||
if os.path.exists (self.rcfilename):
|
if os.path.exists (self.rcfilename):
|
||||||
rcfile = open (self.rcfilename)
|
rcfile = open (self.rcfilename)
|
||||||
rc = rcfile.readlines ()
|
rc = rcfile.readlines ()
|
||||||
|
|
Loading…
Reference in New Issue