locations.py

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

mercurial