make path to js absolute
This commit is contained in:
parent
05c564f86b
commit
ad3c06dac7
|
@ -93,6 +93,7 @@ final class CoreEnv private (application: Application, val settings: Settings) {
|
||||||
settings = settings)
|
settings = settings)
|
||||||
|
|
||||||
lazy val game = new lila.game.GameEnv(
|
lazy val game = new lila.game.GameEnv(
|
||||||
|
app = app,
|
||||||
settings = settings,
|
settings = settings,
|
||||||
mongodb = mongodb.apply _)
|
mongodb = mongodb.apply _)
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,13 @@
|
||||||
package lila
|
package lila
|
||||||
package game
|
package game
|
||||||
|
|
||||||
|
import play.api.Application
|
||||||
import com.mongodb.casbah.MongoCollection
|
import com.mongodb.casbah.MongoCollection
|
||||||
|
|
||||||
import core.Settings
|
import core.Settings
|
||||||
|
|
||||||
final class GameEnv(
|
final class GameEnv(
|
||||||
|
app: Application,
|
||||||
settings: Settings,
|
settings: Settings,
|
||||||
mongodb: String ⇒ MongoCollection) {
|
mongodb: String ⇒ MongoCollection) {
|
||||||
|
|
||||||
|
@ -34,5 +36,5 @@ final class GameEnv(
|
||||||
|
|
||||||
lazy val rewind = new Rewind
|
lazy val rewind = new Rewind
|
||||||
|
|
||||||
lazy val gameJs = new GameJs(settings.GameJsPath)
|
lazy val gameJs = new GameJs(app.path.getCanonicalPath + "/" + settings.GameJsPath)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue