[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Problem in accessing relative filenames | C-API
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Mon, 30 May 2011 12:59:08 -0300
> My requirement is to load an embedded lua script file using C api. I am
> unable to load the script file using C apis like lual_loadfile or
> lual_dofile because the path is not properly setup as I use relative names.
> I have tried adding my path to package.path but still i get "Cannot open
> <file>" error. I cannot modify luaconf.h file so changing LUA_DEFAULT_PATH
> is out of question.
package.path is used by require but not by luaL_loadfile and luaL_dofile,