def user_config_dir(appname, roaming=True):
 if WINDOWS:
  path = user_data_dir(appname, roaming=roaming)
 elif (sys.platform == 'darwin'):
  path = user_data_dir(appname)
 else:
  path = os.getenv('XDG_CONFIG_HOME', expanduser('~/.config'))
  path = os.path.join(path, appname)
 return path

def user_config_dir ( appname , roaming = True ) : if WINDOWS : path = user_data_dir ( appname , roaming = roaming ) elif ( sys . platform == 'darwin' ) : path = user_data_dir ( appname ) else : path = os . getenv ( 'XDG_CONFIG_HOME' , expanduser ( '~/.config' ) ) path = os . path . join ( path , appname ) return path
return full path to the user-specific config dir for this application .