xdg = os.environ.get('XDG_CONFIG_HOME')
if xdg is not None:
return os.path.expanduser(xdg)
else:
return os.path.expanduser("~/.config/gtimelog")
so if I set XDG_CONFIG_HOME=~/.config, then gtimelog will use ~/.config/gtimelogrc?
Shouldn't that be
xdg = os.environ.get('XDG_CONFIG_HOME')
if xdg is not None:
return os.path.join(os.path.expanduser(xdg), 'gtimelog')
else:
return os.path.expanduser("~/.config/gtimelog")
Actually, wait a second:
xdg = os.environ. get('XDG_ CONFIG_ HOME') expanduser( xdg) expanduser( "~/.config/ gtimelog" )
if xdg is not None:
return os.path.
else:
return os.path.
so if I set XDG_CONFIG_ HOME=~/ .config, then gtimelog will use ~/.config/ gtimelogrc?
Shouldn't that be
xdg = os.environ. get('XDG_ CONFIG_ HOME') join(os. path.expanduser (xdg), 'gtimelog') expanduser( "~/.config/ gtimelog" )
if xdg is not None:
return os.path.
else:
return os.path.
and likewise for the data dir?