lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> 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)