[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Changing behaviour of require and dofile
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 19 Aug 2008 13:17:15 -0300
> can anyone give me any idea of what I will need to do to get lua to
> check for the existance of a compiled file when require and dofile are
> called?
Lua loads source and precompiled files transparently. So, for require it's
a simple matter of setting LUA_PATH or package.path correctly. For instance:
precompiled/?.lua;source/?.lua
For loadfile etc, you can redefine them to look in the path above.