Mercurial Hosting > luan
diff http/src/luan/modules/http/Http_test.luan @ 693:ca169567ce07
module URIs must now include ".luan"
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 19 Apr 2016 15:54:11 -0600 |
parents | 35dde32c02ab |
children | 87970832a3c3 |
line wrap: on
line diff
--- a/http/src/luan/modules/http/Http_test.luan Mon Apr 18 20:40:21 2016 -0600 +++ b/http/src/luan/modules/http/Http_test.luan Tue Apr 19 15:54:11 2016 -0600 @@ -1,10 +1,10 @@ -local Luan = require "luan:Luan" +local Luan = require "luan:Luan.luan" local error = Luan.error local set_metatable = Luan.set_metatable or error() -local Io = require "luan:Io" -local String = require "luan:String" +local Io = require "luan:Io.luan" +local String = require "luan:String.luan" local matches = String.matches or error() -local Http = require "luan:http/Http" +local Http = require "luan:http/Http.luan" local M = {} @@ -17,7 +17,7 @@ path = path .. M.welcome_file end local old_out = Io.stdout - local mod = require("site:"..path) + local mod = require("site:"..path..".luan") mod() M.text_writer.close() Io.stdout = old_out