config.py

changeset 43
8f3ac19f11b6
parent 34
9fce700d42de
child 74
4f56142e7497
--- a/config.py	Sun Jan 21 22:38:01 2018 +0000
+++ b/config.py	Sun Jan 21 22:43:57 2018 +0000
@@ -9,6 +9,7 @@
 import string
 import logging
 import borgend
+import platform
 from functools import reduce
 
 logger=borgend.logger.getChild(__name__)
@@ -41,7 +42,7 @@
 # Locations
 #
 
-if False:
+if platform.system()!='Darwin':
     import xdg
     cfgfile=os.path.join(xdg.XDG_CONFIG_HOME, borgend.appname, "config.yaml")
     logs_dir=os.path.join(xdg.XDG_DATA_HOME, borgend.appname, "logs")

mercurial