Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
|
|
@ -1,9 +1,8 @@
|
|||
object Environment_variables extends App {
|
||||
|
||||
val variablesToUse = List("PATH", "HOME", "HOMEPATH", "USERNAME")
|
||||
println((for {
|
||||
y <- sys.env
|
||||
x <- variablesToUse
|
||||
if y._1 == x
|
||||
} yield y).sorted.toMap.mkString("\n"))
|
||||
def variablesToUse = Seq("USERPROFILE", "java.library.path", "PATH", "HOME", "HOMEPATH", "USERNAME")
|
||||
println(sys.env.filter(p => variablesToUse contains p._1).toMap.mkString("\n"))
|
||||
println
|
||||
println (System.getProperty("java.library.path").split(";").mkString("\n"))
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue