def _get_xdg_cache_dir():
 path = os.environ.get('XDG_CACHE_HOME')
 if (path is None):
  path = _get_home()
  if (path is not None):
   path = os.path.join(path, '.cache', 'matplotlib')
 return path

def _get_xdg_cache_dir ( ) : path = os . environ . get ( 'XDG_CACHE_HOME' ) if ( path is None ) : path = _get_home ( ) if ( path is not None ) : path = os . path . join ( path , '.cache' , 'matplotlib' ) return path
returns the xdg cache directory .