src/Pure/System/options.scala
changeset 73815 43882e34c038
parent 73715 bf51c23f3f99
child 73826 72900f34dbb3
equal deleted inserted replaced
73814:c8b4a4f69068 73815:43882e34c038
   132 
   132 
   133   def init(prefs: String = read_prefs(PREFS), opts: List[String] = Nil): Options =
   133   def init(prefs: String = read_prefs(PREFS), opts: List[String] = Nil): Options =
   134   {
   134   {
   135     var options = empty
   135     var options = empty
   136     for {
   136     for {
   137       dir <- Isabelle_System.components()
   137       dir <- Components.directories()
   138       file = dir + OPTIONS if file.is_file
   138       file = dir + OPTIONS if file.is_file
   139     } { options = Parser.parse_file(options, file.implode, File.read(file)) }
   139     } { options = Parser.parse_file(options, file.implode, File.read(file)) }
   140     opts.foldLeft(Options.Parser.parse_prefs(options, prefs))(_ + _)
   140     opts.foldLeft(Options.Parser.parse_prefs(options, prefs))(_ + _)
   141   }
   141   }
   142 
   142