[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Running different codes for different systems
- From: luciano de souza <luchyanus@...>
- Date: Wed, 5 Jan 2011 11:04:56 -0200
This solution is very nice. I have'nt been used "package.config" before.
As I am using IUP, I could use iupdrvGetsystemName, but it is only
available in C API. I am coding in pure Lua, so "package.config" is
much better.
Thank you!
2011/1/5, steve donovan <steve.j.donovan@gmail.com>:
> On Wed, Jan 5, 2011 at 2:39 PM, luciano de souza <luchyanus@gmail.com>
> wrote:
>> What do you suggest?
>
> Also, first byte of package.config is either \ or / - i.e.
>
> if package.config:sub(1,1)=='\\' then
> print 'windows!'
> end
>
> steve d.
>
>
--
Luciano de Souza