summary refs log tree commit diff stats
path: root/compiler/scriptconfig.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2016-07-14 01:40:12 +0200
committerAraq <rumpf_a@web.de>2016-07-14 01:40:12 +0200
commit6dddb3e68ef9209ea58ab44c8e226b05692e6289 (patch)
tree5b8f634d1a2c0e3bf5bd25c62b2481d3c15c4284 /compiler/scriptconfig.nim
parent928ac1e9945582bf443ecc8a54aa5be76f17ecbd (diff)
downloadNim-6dddb3e68ef9209ea58ab44c8e226b05692e6289.tar.gz
nimscript.patchFile supports $lib and stuff
Diffstat (limited to 'compiler/scriptconfig.nim')
-rw-r--r--compiler/scriptconfig.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/scriptconfig.nim b/compiler/scriptconfig.nim
index dcb92227d..31a8f719a 100644
--- a/compiler/scriptconfig.nim
+++ b/compiler/scriptconfig.nim
@@ -126,7 +126,7 @@ proc setupVM*(module: PSym; scriptName: string): PEvalContext =
     let key = a.getString(0) & "_" & a.getString(1)
     var val = a.getString(2).addFileExt(NimExt)
     if not isAbsolute(val):
-      val = vthisDir / val
+      val = vthisDir / pathSubs(val, vthisDir)
     gModuleOverrides[key] = val
 
 proc runNimScript*(scriptName: string; freshDefines=true) =