{ } Raw JSON

bundles / astropy latest / astropy / config / configuration / reload_config

function

astropy.config.configuration:reload_config

source: /astropy/config/configuration.py :730

Signature

def   reload_config ( packageormod = None rootname = None )

Summary

Reloads configuration settings from a configuration file for the root package of the requested package/module.

Extended Summary

This overwrites any changes that may have been made in ConfigItem objects. This applies for any items that are based on this file, which is determined by the root package of packageormod (e.g. 'astropy.cfg' for the 'astropy.config.configuration' module).

Parameters

packageormod : str or None

The package or module name - see get_config for details.

rootname : str or None

Name of the root configuration directory - see get_config for details.

Aliases

  • astropy.config.reload_config