You can get the value of an environment variable on your system using the System/getenv function. Just pass it the environment variable as a string:
System/getenv
> (System/getenv "HOME") "/Users/jbranchaud"
It returns nil when the environment variable doesn't exist.
nil
> (System/getenv "HOUSE") nil
Last updated 4 years ago