add support for loading from relative directories to make the example load out of the box

This commit is contained in:
Matias 2013-05-29 11:19:08 +03:00
parent 09ff781a9a
commit 3a9623cdd7

View File

@ -25,6 +25,9 @@
spine = {}
local path = system.pathForFile("../")
package.path = package.path .. ";".. path .. "/?.lua"
spine.utils = require "spine-lua.utils"
spine.SkeletonJson = require "spine-lua.SkeletonJson"
spine.SkeletonData = require "spine-lua.SkeletonData"