From 08950649839c1df1504d495fccfea04bf11f55ed Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Mon, 30 Oct 2017 17:21:05 +0100 Subject: getEnv now supports a 'default' parameter; refs #6019 --- compiler/scriptconfig.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/scriptconfig.nim') diff --git a/compiler/scriptconfig.nim b/compiler/scriptconfig.nim index 0c31eadbe..22377a1e2 100644 --- a/compiler/scriptconfig.nim +++ b/compiler/scriptconfig.nim @@ -79,7 +79,7 @@ proc setupVM*(module: PSym; cache: IdentCache; scriptName: string; setResult(a, osproc.execCmd getString(a, 0)) cbconf getEnv: - setResult(a, os.getEnv(a.getString 0)) + setResult(a, os.getEnv(a.getString 0, a.getString 1)) cbconf existsEnv: setResult(a, os.existsEnv(a.getString 0)) cbconf dirExists: -- cgit 1.4.1-2-gfad0