This commit is contained in:
arpruss 2015-09-25 17:09:04 -05:00
parent f1b7712130
commit 8d8570718d

View File

@ -1,3 +1,4 @@
-- fix path --
if string.find(package.path, "%\\%?") then
package.path = package.path .. ";" .. string.gsub(package.path, "bin%\\lua%\\%?%.lua", "mods\\raspberryjammod\\?.lua")
package.cpath = package.cpath .. ";" .. string.gsub(package.cpath, "bin%\\%?", "mods\\raspberryjammod\\?")
@ -5,8 +6,7 @@ else
package.path = package.path .. ";" .. string.gsub(package.path, "bin%/lua%/%?%.lua", "mods/raspberryjammod/?.lua")
package.cpath = package.cpath .. ";" .. string.gsub(package.cpath, "bin%/%?", "mods/raspberryjammod/?")
end
print(package.path)
print(package.cpath)
local block = require("block")
local socket = require("socket")
local server = socket.bind("*", 4711)