def find_paste_config():
 if CONF.paste_deploy.config_file:
  paste_config = CONF.paste_deploy.config_file
  paste_config_value = paste_config
  if (not os.path.isabs(paste_config)):
   paste_config = CONF.find_file(paste_config)
 elif CONF.config_file:
  paste_config = CONF.config_file[0]
  paste_config_value = paste_config
 else:
  paste_config = CONF.find_file('keystone.conf')
  paste_config_value = 'keystone.conf'
 if ((not paste_config) or (not os.path.exists(paste_config))):
  raise exception.ConfigFileNotFound(config_file=paste_config_value)
 return paste_config

def find_paste_config ( ) : if CONF . paste_deploy . config_file : paste_config = CONF . paste_deploy . config_file paste_config_value = paste_config if ( not os . path . isabs ( paste_config ) ) : paste_config = CONF . find_file ( paste_config ) elif CONF . config_file : paste_config = CONF . config_file [ 0 ] paste_config_value = paste_config else : paste_config = CONF . find_file ( 'keystone.conf' ) paste_config_value = 'keystone.conf' if ( ( not paste_config ) or ( not os . path . exists ( paste_config ) ) ) : raise exception . ConfigFileNotFound ( config_file = paste_config_value ) return paste_config
find keystones paste .