def copy_config_file(self, config_file, path=None, overwrite=False):
        dst = os.path.join(self.location, config_file)
        if os.path.isfile(dst) and not overwrite:
            return False
        if path is None:
            path = os.path.join(get_ipython_package_dir(), 'config', 'profile', 'default')
        src = os.path.join(path, config_file)
        shutil.copy(src, dst)
        return True
Copy a default config file into the active profile directory.
dataset/ETHPy150Open ipython/ipython-py3k/IPython/core/profiledir.py/ProfileDir.copy_config_file