equal
deleted
inserted
replaced
265 try { file.isFile && file.canRead && file.canExecute } |
265 try { file.isFile && file.canRead && file.canExecute } |
266 catch { case _: SecurityException => false } |
266 catch { case _: SecurityException => false } |
267 }) match { |
267 }) match { |
268 case Some(dir) => |
268 case Some(dir) => |
269 Isabelle_System.process_output( |
269 Isabelle_System.process_output( |
270 execute(true, (List(platform_path(dir + "/" + name)) ++ args): _*)) |
270 execute(true, (List(expand_path(dir + "/" + name)) ++ args): _*)) |
271 case None => ("Unknown Isabelle tool: " + name, 2) |
271 case None => ("Unknown Isabelle tool: " + name, 2) |
272 } |
272 } |
273 } |
273 } |
274 |
274 |
275 |
275 |
330 |
330 |
331 /* symbols */ |
331 /* symbols */ |
332 |
332 |
333 private def read_symbols(path: String): List[String] = |
333 private def read_symbols(path: String): List[String] = |
334 { |
334 { |
335 val file = new File(platform_path(path)) |
335 val file = platform_file(path) |
336 if (file.isFile) Source.fromFile(file).getLines.toList |
336 if (file.isFile) Source.fromFile(file).getLines.toList |
337 else Nil |
337 else Nil |
338 } |
338 } |
339 val symbols = new Symbol.Interpretation( |
339 val symbols = new Symbol.Interpretation( |
340 read_symbols("$ISABELLE_HOME/etc/symbols") ::: |
340 read_symbols("$ISABELLE_HOME/etc/symbols") ::: |