[feature] Added os.delEnv; add delEnv support to nimscript too (#11466)
[feature] Fixes https://github.com/nim-lang/Nim/issues/11452.
This commit is contained in:
parent
eadea343ef
commit
7182922622
6 changed files with 59 additions and 4 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue