def _get_db_settings(self):
        """Create DB settings according to the configuration file."""
        config_path = os.path.expanduser(
            self.config.FrameworkConfigGet('DATABASE_SETTINGS_FILE'))
        settings = {}
        with FileOperations.open(config_path, 'r') as f:
            for line in f:
                line = line.rstrip()
                # Ignore empty/comment lines.
                if not line or line.startswith('#'):
                    continue
                try:
                    key, value = line.split(':')
                    settings[key.strip()] = value.strip()
                except __HOLE__:
                    self.error_handler.FrameworkAbort(
                        "Problem in config file: '%s' -> Cannot parse line: %s"
                        % (config_path, line))
        return settings
dataset/ETHPy150Open owtf/owtf/framework/db/db.py/DB._get_db_settings