make path to js absolute

This commit is contained in:
Thibault Duplessis 2012-12-19 16:44:00 +01:00
parent 05c564f86b
commit ad3c06dac7
2 changed files with 4 additions and 1 deletions

View file

@ -93,6 +93,7 @@ final class CoreEnv private (application: Application, val settings: Settings) {
settings = settings)
lazy val game = new lila.game.GameEnv(
app = app,
settings = settings,
mongodb = mongodb.apply _)

View file

@ -1,11 +1,13 @@
package lila
package game
import play.api.Application
import com.mongodb.casbah.MongoCollection
import core.Settings
final class GameEnv(
app: Application,
settings: Settings,
mongodb: String MongoCollection) {
@ -34,5 +36,5 @@ final class GameEnv(
lazy val rewind = new Rewind
lazy val gameJs = new GameJs(settings.GameJsPath)
lazy val gameJs = new GameJs(app.path.getCanonicalPath + "/" + settings.GameJsPath)
}