about summary refs log tree commit diff stats
path: root/src/main.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.nim')
-rw-r--r--src/main.nim6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.nim b/src/main.nim
index f730de5e..ede2f5b8 100644
--- a/src/main.nim
+++ b/src/main.nim
@@ -1,10 +1,14 @@
 import version
 
 import server/forkserver
+import config/chapath
+from std/os import getEnv, putEnv, commandLineParams, getCurrentDir
+from types/opt import get
+
+putEnv("CHA_LIBEXEC_DIR", ChaPath"${%CHA_LIBEXEC_DIR}".unquote().get)
 let forks = newForkServer()
 
 import std/options
-import std/os
 
 import config/config
 import io/serversocket