lua-users home
lua-l archive

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

> Is there is any alternate way of making luaL_loadfile & luaL_dofile enforce relative path-names ?

If you set the current working directory of your application with for
example chdir("/path/to/mydir/") on the C side, you can of course load
files relatively to that directory.
But this is not as flexible as a search path.