borgend/locations.py

changeset 80
a409242121d5
parent 79
b075b3db3044
child 89
51cc2e25af38
equal deleted inserted replaced
79:b075b3db3044 80:a409242121d5
1 #
2 # Locations
3 #
4
5 import os
6 import platform
7
8 from . import branding
9
10 if platform.system()!='Darwin':
11 import xdg
12 cfgfile=os.path.join(xdg.XDG_CONFIG_HOME, branding.appname, "config.yaml")
13 logs_dir=os.path.join(xdg.XDG_DATA_HOME, branding.appname, "logs")
14 else:
15 import rumps
16 __base=rumps.application_support(branding.appname)
17 cfgfile=os.path.join(__base, "config.yaml")
18 logs_dir=os.path.join(__base, "logs")

mercurial