fix paths without lake

This commit is contained in:
Alexander Bentkamp
2022-11-24 14:41:38 +01:00
parent 77a8c4750e
commit 9b76b4aed3
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -107,7 +107,7 @@ def initAndRunWatchdogAux : GameServerM Unit := do
| throwServerError "Got `shutdown` request, expected an `exit` notification"
def createEnv : IO Environment := do
let gameDir := "../testgame"
let gameDir := "../../../testgame"
-- Determine search paths of the game project by running `lake env printenv LEAN_PATH`.
let out ← IO.Process.output
@@ -128,7 +128,7 @@ def createEnv : IO Environment := do
return env
def initAndRunWatchdog (args : List String) (i o e : FS.Stream) : IO Unit := do
let workerPath := "./build/bin/gameserver"
let workerPath := "./gameserver"
-- TODO: Do the following commands slow us down?
let srcSearchPath ← initSrcSearchPath (← getBuildDir)
let references ← IO.mkRef (← loadReferences)