lua-users home
lua-l archive

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


> 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,