Add support for "local" libraries specific to a script or set of scripts. Currently only the lua/lib is searched for libraries.
This change adds a check for each .lua file in a lib directory and adds an entry to the package.path search path if necessary. Then entry is added to the end of that search path entries, so if the library name is the same as an existing one earlier in the search path, the earlier one will be used.
Add support for "local" libraries specific to a script or set of scripts. Currently only the
lua/lib
is searched for libraries.This change adds a check for each
.lua
file in alib
directory and adds an entry to thepackage.path
search path if necessary. Then entry is added to the end of that search path entries, so if the library name is the same as an existing one earlier in the search path, the earlier one will be used.