In Java, reading environment variables is done with System.getenv().
System.getenv()
Is there a way to do this in Scala?
There is an object:
scala.util.Properties
this has a collection of methods that can be used to get environment info, including
scala.util.Properties.envOrElse("HOME", "/myhome" )