add relative path to package.path to make running the example work straight out of the box on simulator

This commit is contained in:
Matias 2013-05-29 12:05:31 +03:00
parent 2034a6e726
commit b5da5daa38

View File

@ -25,6 +25,10 @@
spine = {}
if (system.getInfo("environment") == "simulator") then
package.path = package.path .. ";".. system.pathForFile("../") .. "/?.lua"
end
spine.utils = require "spine-lua.utils"
spine.SkeletonJson = require "spine-lua.SkeletonJson"
spine.SkeletonData = require "spine-lua.SkeletonData"