environment/lib/python2.7/site-packages/IPython/frontend/terminal/ipapp.py
def load_default_config(ipython_dir=None):
    """Load the default config file from the default ipython_dir.

    This is useful for embedded shells.
    """
    if ipython_dir is None:
        ipython_dir = get_ipython_dir()
    profile_dir = os.path.join(ipython_dir, 'profile_default')
    cl = PyFileConfigLoader(default_config_file_name, profile_dir)
    try:
        config = cl.load_config()
    except ConfigFileNotFound:
        # no config found
        config = Config()
    return config
def load_default_config(ipython_dir=None):
    if ipython_dir is None:
        ipython_dir = get_ipython_dir()
    profile_dir = os.path.join(ipython_dir, 'profile_default')
    cl = PyFileConfigLoader(default_config_file_name, profile_dir)
    try:
        config = cl.load_config()
    except ConfigFileNotFound:
        # no config found
        config = Config()
    return config
def load_default_config ( ipython_dir = None ) : if ipython_dir is None : ipython_dir = get_ipython_dir ( ) profile_dir = os . path . join ( ipython_dir , 'profile_default' ) cl = PyFileConfigLoader ( default_config_file_name , profile_dir ) try : config = cl . load_config ( ) except ConfigFileNotFound : # no config found config = Config ( ) return config
Load the default config file from the default ipython_dir.

    This is useful for embedded shells.
Load the default config file from the default ipython_dir .