Support for OS X
This commit is contained in:
parent
2622b083db
commit
aad7f5637c
1 changed files with 3 additions and 0 deletions
|
@ -50,6 +50,9 @@ def read_settings():
|
|||
'HOME') + os.sep + '.config' + os.sep + 'radiorec'
|
||||
elif sys.platform == 'win32':
|
||||
settings_base_dir = os.getenv('LOCALAPPDATA') + os.sep + 'radiorec'
|
||||
elif sys.platform == 'darwin':
|
||||
settings_base_dir = os.getenv('HOME') + os.sep + 'Library' + os.sep
|
||||
+ 'Application Support' + os.sep + 'radiorec'
|
||||
settings_base_dir += os.sep
|
||||
config = configparser.ConfigParser()
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue