template for $ISABELLE_HOME_USER/ROOTS;
authorwenzelm
Thu, 31 Aug 2017 19:34:43 +0200
changeset 66577 6e35cf3ce869
parent 66576 7d4da1c62de7
child 66578 6a034c6c423f
template for $ISABELLE_HOME_USER/ROOTS;
src/Pure/Tools/main.scala
--- a/src/Pure/Tools/main.scala	Thu Aug 31 19:29:42 2017 +0200
+++ b/src/Pure/Tools/main.scala	Thu Aug 31 19:34:43 2017 +0200
@@ -23,6 +23,21 @@
         GUI.install_fonts()
 
 
+        /* ROOTS template */
+
+        {
+          val roots = Path.explode("$ISABELLE_HOME_USER/ROOTS")
+          if (!roots.is_file) File.write(roots, """# Additional session root directories
+#
+#   * each line contains one directory entry in Isabelle path notation
+#   * lines starting with "#" are stripped
+#   * changes require application restart
+#
+#:mode=text:encoding=UTF-8:
+""")
+        }
+
+
         /* settings directory */
 
         val settings_dir = Path.explode("$JEDIT_SETTINGS")