config.py

changeset 34
9fce700d42de
parent 33
91421eeb4426
child 43
8f3ac19f11b6
--- 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.

mercurial