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:
- pkg
python:str
The package to be updated.
- rootname
python:str
Name of the root configuration directory.
- overwritebool
Force updating the file if it already exists.
- pkg
- Returns:
- updatedbool
If the profile was updated,
True
, otherwiseFalse
.