def get_pants_cachedir():
 cache_home = os.environ.get(u'XDG_CACHE_HOME')
 if (not cache_home):
  cache_home = u'~/.cache'
 return os.path.expanduser(os.path.join(cache_home, u'pants'))

def get_pants_cachedir ( ) : cache_home = os . environ . get ( u'XDG_CACHE_HOME' ) if ( not cache_home ) : cache_home = u'~/.cache' return os . path . expanduser ( os . path . join ( cache_home , u'pants' ) )
return the pants global cache directory .