config.py

changeset 43
8f3ac19f11b6
parent 34
9fce700d42de
child 74
4f56142e7497
equal deleted inserted replaced
42:00accd11978b 43:8f3ac19f11b6
7 import io 7 import io
8 import os 8 import os
9 import string 9 import string
10 import logging 10 import logging
11 import borgend 11 import borgend
12 import platform
12 from functools import reduce 13 from functools import reduce
13 14
14 logger=borgend.logger.getChild(__name__) 15 logger=borgend.logger.getChild(__name__)
15 16
16 # 17 #
39 40
40 # 41 #
41 # Locations 42 # Locations
42 # 43 #
43 44
44 if False: 45 if platform.system()!='Darwin':
45 import xdg 46 import xdg
46 cfgfile=os.path.join(xdg.XDG_CONFIG_HOME, borgend.appname, "config.yaml") 47 cfgfile=os.path.join(xdg.XDG_CONFIG_HOME, borgend.appname, "config.yaml")
47 logs_dir=os.path.join(xdg.XDG_DATA_HOME, borgend.appname, "logs") 48 logs_dir=os.path.join(xdg.XDG_DATA_HOME, borgend.appname, "logs")
48 else: 49 else:
49 import rumps 50 import rumps

mercurial