|
|
||
|
> If I say
> dofile('xxx.lua')
> and xxx.lua is not in the current directory, it is an error.
>
> Is there a way of giving Lua a path in which dofile should look
> before giving up?
Try require"xxx". Then Lua will search package.path for xxx.lua.