From 6dddb3e68ef9209ea58ab44c8e226b05692e6289 Mon Sep 17 00:00:00 2001 From: Araq Date: Thu, 14 Jul 2016 01:40:12 +0200 Subject: [PATCH] nimscript.patchFile supports $lib and stuff --- compiler/scriptconfig.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/scriptconfig.nim b/compiler/scriptconfig.nim index dcb92227d1..31a8f719a6 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) =