read_symbols: proper IsabelleSystem.platform_path;
authorwenzelm
Thu, 21 Aug 2008 13:05:31 +0200
changeset 27935 68d40072e9e7
parent 27934 7d12a7e3cc55
child 27936 947cb8e3d313
read_symbols: proper IsabelleSystem.platform_path;
src/Pure/General/symbol.scala
--- a/src/Pure/General/symbol.scala	Thu Aug 21 13:05:28 2008 +0200
+++ b/src/Pure/General/symbol.scala	Thu Aug 21 13:05:31 2008 +0200
@@ -102,8 +102,8 @@
       }
     }
 
-    private def read_symbols(base: String) = {
-      val file = new File(base + File.separator + "etc" + File.separator + "symbols")
+    private def read_symbols(path: String) = {
+      val file = new File(IsabelleSystem.platform_path(path))
       if (file.canRead) {
         for (line <- Source.fromFile(file).getLines) read_line(line)
       }
@@ -132,8 +132,8 @@
 
     /* constructor */
 
-    read_symbols(IsabelleSystem.ISABELLE_HOME)
-    read_symbols(IsabelleSystem.ISABELLE_HOME_USER)
+    read_symbols("$ISABELLE_HOME/etc/symbols")
+    read_symbols("$ISABELLE_HOME_USER/etc/symbols")
     init_recoders()
   }