def find_config(config_path):
 possible_locations = [config_path, os.path.join(FLAGS.state_path, 'etc', 'cinder', config_path), os.path.join(FLAGS.state_path, 'etc', config_path), os.path.join(FLAGS.state_path, config_path), ('/etc/cinder/%s' % config_path)]
 for path in possible_locations:
  if os.path.exists(path):
   return os.path.abspath(path)
 raise exception.ConfigNotFound(path=os.path.abspath(config_path))

def find_config ( config_path ) : possible_locations = [ config_path , os . path . join ( FLAGS . state_path , 'etc' , 'cinder' , config_path ) , os . path . join ( FLAGS . state_path , 'etc' , config_path ) , os . path . join ( FLAGS . state_path , config_path ) , ( '/etc/cinder/%s' % config_path ) ] for path in possible_locations : if os . path . exists ( path ) : return os . path . abspath ( path ) raise exception . ConfigNotFound ( path = os . path . abspath ( config_path ) )
find a configuration file using the given hint .