[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Getting the value of environment variables
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Sat, 29 May 2010 12:27:56 -0300
> Yes, use os.getenv(varname) like os.getenv("windir") or os.getenv("home")
> on Linux.
Or automagically with
setmetatable(_G,{__index=function (t,i) return os.getenv(i) end})
print(home)