Buck: read_config()
Support Ukraine. Help Provide Humanitarian Aid to Ukraine.


This is liable to change in the future.

Returns a configuration value of .buckconfig or --config flag. For example, read_config('foo', 'bar', 'baz') returns bazz if Buck is invoked with --config foo.bar=bazz flag.


  • section (defaults to None) the name of the .buckconfig section with the desired value.
  • field (defaults to None) the name of the .buckconfig field with the desired value.
  • defaultValue (defaults to None) the value to return if the desired value is not set in the .buckconfig.