src/Pure/System/session.scala
changeset 43652 dcd0b667f73d
parent 43651 511df47bcadc
child 43660 bfc0bb115fa1
equal deleted inserted replaced
43651:511df47bcadc 43652:dcd0b667f73d
   152   val thy_load = new Thy_Load
   152   val thy_load = new Thy_Load
   153   {
   153   {
   154     override def check_thy(dir: Path, name: String): (String, Thy_Header.Header) =
   154     override def check_thy(dir: Path, name: String): (String, Thy_Header.Header) =
   155     {
   155     {
   156       val file = system.platform_file(dir + Thy_Header.thy_path(name))
   156       val file = system.platform_file(dir + Thy_Header.thy_path(name))
   157       if (!file.exists || !file.isFile) error("No such file: " + Library.quote(file.toString))
   157       if (!file.exists || !file.isFile) error("No such file: " + quote(file.toString))
   158       val text = Standard_System.read_file(file)
   158       val text = Standard_System.read_file(file)
   159       val header = thy_header.read(text)
   159       val header = thy_header.read(text)
   160       (text, header)
   160       (text, header)
   161     }
   161     }
   162   }
   162   }