Skip to content

Commit

Permalink
add in %ENV
Browse files Browse the repository at this point in the history
  • Loading branch information
Stevan Little committed Apr 3, 2013
1 parent f584c65 commit 2f93a5b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/scala/org/moe/runtime/builtins/RootEnvironment.scala
Expand Up @@ -14,6 +14,8 @@ object RootEnvironment {
import r.NativeObjects._

env.create("@ARGV", getArray())

env.create("%ENV", getHash(r.getSystem.getEnv.map(p => p._1 -> getStr(p._2)).toSeq:_*))

}
}

0 comments on commit 2f93a5b

Please sign in to comment.