def get_conf_path(filename=None):
 if sys.platform.startswith('linux'):
  xdg_config_home = os.environ.get('XDG_CONFIG_HOME', '')
  if (not xdg_config_home):
   xdg_config_home = osp.join(get_home_dir(), '.config')
  if (not osp.isdir(xdg_config_home)):
   os.makedirs(xdg_config_home)
  conf_dir = osp.join(xdg_config_home, SUBFOLDER)
 else:
  conf_dir = osp.join(get_home_dir(), SUBFOLDER)
 if (not osp.isdir(conf_dir)):
  os.mkdir(conf_dir)
 if (filename is None):
  return conf_dir
 else:
  return osp.join(conf_dir, filename)

def get_conf_path ( filename = None ) : if sys . platform . startswith ( 'linux' ) : xdg_config_home = os . environ . get ( 'XDG_CONFIG_HOME' , '' ) if ( not xdg_config_home ) : xdg_config_home = osp . join ( get_home_dir ( ) , '.config' ) if ( not osp . isdir ( xdg_config_home ) ) : os . makedirs ( xdg_config_home ) conf_dir = osp . join ( xdg_config_home , SUBFOLDER ) else : conf_dir = osp . join ( get_home_dir ( ) , SUBFOLDER ) if ( not osp . isdir ( conf_dir ) ) : os . mkdir ( conf_dir ) if ( filename is None ) : return conf_dir else : return osp . join ( conf_dir , filename )
return absolute path for configuration file with specified filename .