src/Pure/System/isabelle_system.scala
changeset 34137 6cc9a0cbaf55
parent 34100 ea24958c2af5
child 34162 610ec1e0c848
equal deleted inserted replaced
34136:3dcb46ae6185 34137:6cc9a0cbaf55
   314   }
   314   }
   315 
   315 
   316 
   316 
   317   /* symbols */
   317   /* symbols */
   318 
   318 
   319   private def read_symbols(path: String): Iterator[String] =
   319   private def read_symbols(path: String): List[String] =
   320   {
   320   {
   321     val file = new File(platform_path(path))
   321     val file = new File(platform_path(path))
   322     if (file.isFile) Source.fromFile(file).getLines
   322     if (file.isFile) Source.fromFile(file).getLines.toList
   323     else Iterator.empty
   323     else Nil
   324   }
   324   }
   325   val symbols = new Symbol.Interpretation(
   325   val symbols = new Symbol.Interpretation(
   326     read_symbols("$ISABELLE_HOME/etc/symbols") ++
   326     read_symbols("$ISABELLE_HOME/etc/symbols") :::
   327     read_symbols("$ISABELLE_HOME_USER/etc/symbols"))
   327     read_symbols("$ISABELLE_HOME_USER/etc/symbols"))
   328 
   328 
   329 
   329 
   330   /* fonts */
   330   /* fonts */
   331 
   331