tuned signature;
authorwenzelm
Thu, 01 Jul 2021 23:26:06 +0200
changeset 73913 631b61f06d0e
parent 73912 ac1639349ecf
child 73914 4be1047576e6
tuned signature;
src/Tools/Setup/isabelle/setup/Environment.java
--- a/src/Tools/Setup/isabelle/setup/Environment.java	Thu Jul 01 14:06:20 2021 +0200
+++ b/src/Tools/Setup/isabelle/setup/Environment.java	Thu Jul 01 23:26:06 2021 +0200
@@ -271,6 +271,12 @@
         return _settings;
     }
 
+    public static String getenv(String name)
+        throws IOException, InterruptedException
+    {
+        return settings().getOrDefault(name, "");
+    }
+
     public static synchronized void init(String _isabelle_root, String _cygwin_root)
         throws IOException, InterruptedException
     {
@@ -340,7 +346,7 @@
     public static String cygwin_root()
         throws IOException, InterruptedException
     {
-        return settings().getOrDefault("CYGWIN_ROOT", "");
+        return getenv("CYGWIN_ROOT");
     }
 
     public static String standard_path(String platform_path)