lua-users home
lua-l archive

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


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