()
return(os.path.join(configdir, 'terminator'))
Expand all the messy nonsense for finding where ~/.config/terminator
    really is
Expand all the messy nonsense for finding where ~/.config/terminator
    really is
Expand all the messy nonsense for finding where ~ / . config / terminator really is
def get_config_dir():
    """Expand all the messy nonsense for finding where ~/.config/terminator
    really is"""
    try:
        configdir = os.environ['XDG_CONFIG_HOME']
    except KeyError:
        configdir = os.path.join(os.path.expanduser('~'), '.config')

    dbg('Found config dir: %s' % configdir)
    return(os.path.join(configdir, 'terminator'))
def get_config_dir ( ) : try : configdir = os . environ [ 'XDG_CONFIG_HOME' ] except KeyError : configdir = os . path . join ( os . path . expanduser ( '~' ) , '.config' ) dbg ( 'Found config dir: %s' % configdir ) return ( os . path . join ( configdir , 'terminator' ) )