Thanks Isaiah!

Sent from my iPhone

> On Nov 22, 2014, at 9:44 PM, Isaiah Norton <isaiah.nor...@gmail.com> wrote:
> 
> It acts like a dictionary, so you need square brackets:
> 
> ENV["STAN_HOME"]
> 
> (this works cross-platform, modulo platform conventions)
> 
>> On Sun, Nov 23, 2014 at 12:11 AM, Rob J. Goedman <goed...@icloud.com> wrote:
>> Hi,
>> 
>> In Stan.jl and Jags.jl I look for environment variables.
>> 
>> On unix
>> 
>> ```
>> ccall( (:getenv, "libc"), Ptr{Uint8}, (Ptr{Uint8},), bytestring(var))
>> ```
>> works fine.
>> 
>> But not on Windows. I've seen
>> 
>> ENV("STAN_HOME")
>> 
>> mentioned (on http://rosettacode.org/wiki/Environment_variables#Julia , 
>> can't try that myself). Is that indeed how to get hold of environment 
>> variables?
>> 
>> Thanks,
>> Rob J. Goedman
>> goed...@mac.com
> 

Reply via email to