generate_config#
- astropy.config.generate_config(pkgname='astropy', filename=None, verbose=False)[source]#
Generates a configuration file, from the list of
ConfigItem
objects for each subpackage.New in version 4.1.
- Parameters:
- pkgname
str
orNone
The package for which to retrieve the configuration object.
- filename
str
or file-like object orNone
If None, the default configuration path is taken from
get_config
.
- pkgname