class_docstr: An object to manage the profile directory and its resources.
  
  The profile directory is used by all IPython applications, to manage
  configuration, logging and security.
  
  This object knows how to find, create and manage these directories. This
  should be used by any code that wants to handle profiles.
class_docstr_tok: ["An","object","to","manage","the","profile","directory","and","its","resources",".","The","profile","directory","is","used","by","all","IPython","applications",",","to","manage","configuration",",","logging","and","security",".","This","object","knows","how","to","find",",","create","and","manage","these","directories",".","This","should","be","used","by","any","code","that","wants","to","handle","profiles","."]
docstr: Copy a default config file into the active profile directory.
  
  Default configuration files are kept in :mod:`IPython.core.profile`.
  This function moves these from that location to the working profile
  directory.
docstr_tok: ["Copy","a","default","config","file","into","the","active","profile","directory",".","Default","configuration","files","are","kept","in",":","mod",":","`","IPython.core.profile","`",".","This","function","moves","these","from","that","location","to","the","working","profile","directory","."]
code: def copy_config_file(self, config_file, path=None, overwrite=False):
      """Copy a default config file into the active profile directory.
  
      Default configuration files are kept in :mod:`IPython.core.profile`.
      This function moves these from that location to the working profile
      directory.
      """
      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(), "core", "profile", "default"
          )
      src = os.path.join(path, config_file)
      shutil.copy(src, dst)
      return True
  
imports: import os
  import shutil
  import errno
  from traitlets.config.configurable import LoggingConfigurable
  from IPython.paths import get_ipython_package_dir
  from IPython.utils.path import expand_path, ensure_dir_exists
  from IPython.utils import py3compat
  from traitlets import Unicode, Bool, observe
label_desc: Use image node_id 8 for calling the ProfileDir obj's underlying member method code with example usage: obj.copy_config_file(config_file, path, overwrite) and returns: True, False