diff options
author | Kaushal Modi <kaushal.modi@gmail.com> | 2019-06-15 05:32:26 -0400 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-06-15 11:32:26 +0200 |
commit | 71829226229287f4e1d38c9e4e91fb3d8b8fb648 (patch) | |
tree | 176418cf8ba5a6d1b400489978bdb96de7e07ecc /compiler | |
parent | eadea343ef7ef49026eccbd9a5f4d5df5071ceb4 (diff) | |
download | Nim-71829226229287f4e1d38c9e4e91fb3d8b8fb648.tar.gz |
[feature] Added os.delEnv; add delEnv support to nimscript too (#11466)
[feature] Fixes https://github.com/nim-lang/Nim/issues/11452.
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/scriptconfig.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/scriptconfig.nim b/compiler/scriptconfig.nim index db60dafcc..6c3d0a122 100644 --- a/compiler/scriptconfig.nim +++ b/compiler/scriptconfig.nim @@ -96,6 +96,8 @@ proc setupVM*(module: PSym; cache: IdentCache; scriptName: string; setResult(a, os.existsEnv(a.getString 0)) cbconf putEnv: os.putEnv(a.getString 0, a.getString 1) + cbconf delEnv: + os.delEnv(a.getString 0) cbconf dirExists: setResult(a, os.dirExists(a.getString 0)) cbconf fileExists: |