def get_pants_configdir():
 config_home = os.environ.get(u'XDG_CONFIG_HOME')
 if (not config_home):
  config_home = u'~/.config'
 return os.path.expanduser(os.path.join(config_home, u'pants'))

def get_pants_configdir ( ) : config_home = os . environ . get ( u'XDG_CONFIG_HOME' ) if ( not config_home ) : config_home = u'~/.config' return os . path . expanduser ( os . path . join ( config_home , u'pants' ) )
return the pants global config directory .