getEnv now supports a 'default' parameter; refs #6019
This commit is contained in:
parent
a155130cf2
commit
0895064983
5 changed files with 12 additions and 5 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue