create_config_file

astropy.config.create_config_file(pkg, rootname='astropy', overwrite=False)[source]

Create the default configuration file for the specified package. If the file already exists, it is updated only if it has not been modified. Otherwise the overwrite flag is needed to overwrite it.

Parameters
pkgstr

The package to be updated.

rootnamestr

Name of the root configuration directory.

overwritebool

Force updating the file if it already exists.

Returns
updatedbool

If the profile was updated, True, otherwise False.