Re: [julia-users] Environment variables on Windows

2014-11-22 Thread Robert J Goedman
Thanks Isaiah! Sent from my iPhone > On Nov 22, 2014, at 9:44 PM, Isaiah Norton 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 wrote: >

Re: [julia-users] Environment variables on Windows

2014-11-22 Thread Isaiah Norton
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 wrote: > Hi, > > In Stan.jl and Jags.jl I look for environment variables. > > On unix > > ``` > ccall( (:getenv, "l

[julia-users] Environment variables on Windows

2014-11-22 Thread Rob J. Goedman
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