diff -r 91421eeb4426 -r 9fce700d42de config.py --- a/config.py Sun Jan 21 14:56:56 2018 +0000 +++ b/config.py Sun Jan 21 16:21:53 2018 +0000 @@ -8,9 +8,10 @@ import os import string import logging +import borgend from functools import reduce -logger=logging.getLogger(__name__) +logger=borgend.logger.getChild(__name__) # # Defaults @@ -37,25 +38,18 @@ } # -# Branding -# - -appname="borgend" -appname_stylised="Borgend" - -# # Locations # if False: import xdg - cfgfile=os.path.join(xdg.XDG_CONFIG_HOME, appname, "config.yaml") - logs_location=os.path.join(xdg.XDG_DATA_HOME, appname, "logs") + cfgfile=os.path.join(xdg.XDG_CONFIG_HOME, borgend.appname, "config.yaml") + logs_dir=os.path.join(xdg.XDG_DATA_HOME, borgend.appname, "logs") else: import rumps - __base=rumps.application_support(appname) + __base=rumps.application_support(borgend.appname) cfgfile=os.path.join(__base, "config.yaml") - logs_location=os.path.join(__base, "logs") + logs_dir=os.path.join(__base, "logs") # # Type checking etc.