private static Map initVars()
{
Map vars = new Map(Sys.StrType, Sys.StrType);
try
{
vars.caseInsensitive(true);
// predefined
vars.set("os.name", Environment.OSVersion.Platform.ToString());
vars.set("os.version", Environment.OSVersion.Version.ToString());
// environment variables
IDictionary getenv = Environment.GetEnvironmentVariables();
foreach (DictionaryEntry de in getenv)
{
string key = (string)de.Key;
string val = (string)de.Value;
vars.set(key, val);
}
}
catch (Exception e)
{
Err.dumpStack(e);
}
return((Map)vars.toImmutable());
}