--- 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)