lua-users home
lua-l archive

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


Hi,

I've done a few searches on this topic but haven't quite figured it out.  So thought I would post a question or two.

The context is Lua embedded in a host program.  Various modules and additional Lua files are stored in a subdirectory (/HostAppDir/modules and /HostAppDir/LuaFiles) located at the root directory of the the host program.

Given the directory names shown, what would be the proper way to set the PATH and CPATH so that the require statement works correctly for locating DLLs and additional Lua files?

And I assume I should set those values in the Lua Environment BEFORE loading my main Lua file.

Am I even close?

Thanks
Terry