Fix issue #2: init doesn't grab BASE correctly.

This commit is contained in:
Matthias Richter 2012-04-10 12:40:17 +02:00
parent 2fd060184e
commit ff9caa39ca

View file

@ -24,7 +24,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
]]--
local BASE = ((...):match('(.+)%.') or ...) .. '.'
local BASE = (...) .. '.'
assert(not BASE:match('%.init%.$'), "Invalid require path `"..(...).."' (drop the `.init').")
return {
core = require(BASE .. 'core'),