Thread:Extension talk:Scribunto/Register external library using registerInterface()

Using the following registration method $this->getEngine->registerInterface( dirname( __FILE__ ) . '/' . 'smw.library.lua', $lib, array ); will cause an internal error Lua file does not exist: C:\xampp\htdocs\mw\extensions\Scribunto\engines\LuaCommon/lualib/C:\xampp\htdocs\mw\extensions\SemanticMediaWiki\includes\lua/smw.library.lua

For example, after the smw.library.lua is copied into LuaCommon/lualib directory all methods do work as specified but since Scribunto expects the loading directory to be the Scribunto base directory, registerInterface for external libraries will fail in case there are not included in LuaCommon/lualib directory (and of course I don't want to copy the file, it should remain in the external library folder).
 * Verification:

MediaWiki 1.21alpha (37875db), Scribunto (a852755)
 * Version: