environment/lib/python2.7/site-packages/IPython/config/application.py
def load_config_file(self, filename, path=None):
        """Load a .py based config file by filename and path."""
        loader = PyFileConfigLoader(filename, path=path)
        try:
            config = loader.load_config()
        except ConfigFileNotFound:
            # problem finding the file, raise
            raise
        except Exception:
            # try to get the full filename, but it will be empty in the
            # unlikely event that the error raised before filefind finished
            filename = loader.full_filename or filename
            # problem while running the file
            self.log.error("Exception while loading config file %s",
                            filename, exc_info=True)
        else:
            self.log.debug("Loaded config file: %s", loader.full_filename)
            self.update_config(config)
def load_config_file(self, filename, path=None):
        loader = PyFileConfigLoader(filename, path=path)
        try:
            config = loader.load_config()
        except ConfigFileNotFound:
            # problem finding the file, raise
            raise
        except Exception:
            # try to get the full filename, but it will be empty in the
            # unlikely event that the error raised before filefind finished
            filename = loader.full_filename or filename
            # problem while running the file
            self.log.error("Exception while loading config file %s",
                            filename, exc_info=True)
        else:
            self.log.debug("Loaded config file: %s", loader.full_filename)
            self.update_config(config)
def load_config_file ( self , filename , path = None ) : loader = PyFileConfigLoader ( filename , path = path ) try : config = loader . load_config ( ) except ConfigFileNotFound : # problem finding the file, raise raise except Exception : # try to get the full filename, but it will be empty in the # unlikely event that the error raised before filefind finished filename = loader . full_filename or filename # problem while running the file self . log . error ( "Exception while loading config file %s" , filename , exc_info = True ) else : self . log . debug ( "Loaded config file: %s" , loader . full_filename ) self . update_config ( config )
Load a .py based config file by filename and path.
Load a . py based config file by filename and path .