#line 4425 "/home/travis/build/felix-lang/felix/src/packages/flx_web.fdoc"
  open class WebserverPluginCommon
  {
    fun get_file (var fname:string, INSTALL_ROOT:string, path:list[string]) = {
  //println$ "Search for file " + fname;
      if fname.[0] == char "$" do fname = fname.[1 to]; done
      if FileStat::fileexists fname do
        //println$ "Found as " + fname;
        return Some fname;
      else
        var f = Filename::join(INSTALL_ROOT,fname);
        if FileStat::fileexists f do
          // println$ "Found in root as " + f;
          return Some f;
        else
          var result = FileSystem::find_in_path (fname, path);
          //match result with
          //| Some f => println$ "Found in path as " + f;
          //| #None => println$ "Not found in path " + str path;
          //endmatch;
          return result;
        done
      done
    }
  }