more robust multi-platform support;
authorwenzelm
Thu, 16 Aug 2012 15:40:26 +0200
changeset 48827 8791d106e30b
parent 48826 b19ba23e70c5
child 48830 72efe3e0a46b
more robust multi-platform support;
src/Pure/Thy/thy_load.scala
--- a/src/Pure/Thy/thy_load.scala	Thu Aug 16 14:25:58 2012 +0200
+++ b/src/Pure/Thy/thy_load.scala	Thu Aug 16 15:40:26 2012 +0200
@@ -43,9 +43,9 @@
 
   def read_header(name: Document.Node.Name): Thy_Header =
   {
-    val file = new JFile(name.node)
-    if (!file.exists || !file.isFile) error("No such file: " + quote(file.toString))
-    Thy_Header.read(file)
+    val path = Path.explode(name.node)
+    if (!path.is_file) error("No such file: " + path.toString)
+    Thy_Header.read(path.file)
   }