get_config¶
-
astropy.config.get_config(packageormod=None, reload=False)[source] [edit on github]¶ Gets the configuration object or section associated with a particular package or module.
Parameters: packageormod : str or None
The package for which to retrieve the configuration object. If a string, it must be a valid package name, or if
None, the package from which this function is called will be used.reload : bool, optional
Reload the file, even if we have it cached.
Returns: cfgobj :
configobj.ConfigObjorconfigobj.SectionIf the requested package is a base package, this will be the
configobj.ConfigObjfor that package, or if it is a subpackage or module, it will return the relevantconfigobj.Sectionobject.Raises: RuntimeError
If
packageormodisNone, but the package this item is created from cannot be determined.