22 lines
526 B
Python
22 lines
526 B
Python
#!/usr/bin/env python3
|
|
import sys
|
|
import os.path as path
|
|
from os import getenv
|
|
|
|
userdata = ""
|
|
homedata = path.expanduser("~")
|
|
|
|
if getenv("APPDATA"):
|
|
userdata = getenv("APPDATA") + path.sep + "deemix" + path.sep
|
|
elif sys.platform.startswith('darwin'):
|
|
userdata = homedata + '/Library/Application Support/deemix/'
|
|
elif getenv("XDG_CONFIG_HOME"):
|
|
userdata = getenv("XDG_CONFIG_HOME") + '/deemix/';
|
|
else:
|
|
userdata = homedata + '/.config/deemix/';
|
|
|
|
def getHomeFolder():
|
|
return homedata
|
|
def getConfigFolder():
|
|
return userdata
|