lua-users home
lua-l archive

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

Michal Kolodziejczyk wrote:
So don't bother with package.path (don't allow users change that!), use
full module names:
module1=require "plugin.Ann.module1"
module2=require "plugin.John.module2"

If module authors were that disciplined, the question wouldn't arise. They just prefer to modify package.path and say "require 'module1'". And I'm not in a position to dictate them not to do that. Therefore, I'm seeking a way for the program to isolate groups of scripts (package.path's at the least) from each other.