Re: [wxlua-users] Getting environment variables in Windows

2009-03-21 Thread lostgallifreyan
Attila writes: > > Hi! > The easiest way is to use Lua's os.getenv() function, > for example local path = os.getenv("PATH") or what you need. > Regards: Attila > Thanks. True. I like to use inbuilt Lua functions if they're there. I'd forgotten about this one till after I first posted. (I'm se

Re: [wxlua-users] Getting environment variables in Windows

2009-03-21 Thread lostgallifreyan
lostgallifreyan writes: > Is there a way to get OS environment variables, other than to redirect the ou > tput of command SET to file, then parse the file to get them? And if so, is t > here a way that is as widely compatible with other platforms as wxLua is? > Never mind, there is in Lua itse

Re: [wxlua-users] Getting environment variables in Windows

2009-03-21 Thread Attila
Hi! The easiest way is to use Lua's os.getenv() function, for example local path = os.getenv("PATH") or what you need. Regards: Attila -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering We

Re: [wxlua-users] Getting environment variables in Windows

2009-03-20 Thread John Labenski
On Fri, Mar 20, 2009 at 6:21 PM, lostgallifreyan wrote: > Is there a way to get OS environment variables, other than to redirect the > output of command SET to file, then parse the file to get them? And if so, is > there a way that is as widely compatible with other platforms as wxLua is? > Use

[wxlua-users] Getting environment variables in Windows

2009-03-20 Thread lostgallifreyan
Is there a way to get OS environment variables, other than to redirect the output of command SET to file, then parse the file to get them? And if so, is there a way that is as widely compatible with other platforms as wxLua is? ---