delEnv now works at CT (#18568)

This commit is contained in:
Timothee Cour
2021-07-27 00:56:16 -07:00
committed by GitHub
parent 37f5f0d7d0
commit 493721c16c

View File

@@ -20,7 +20,7 @@ when declared(math.copySign):
when declared(math.signbit):
from std/math import signbit
from std/os import getEnv, existsEnv, dirExists, fileExists, putEnv, walkDir,
from std/os import getEnv, existsEnv, delEnv, putEnv, dirExists, fileExists, walkDir,
getAppFilename, raiseOSError, osLastError
from std/md5 import getMD5
@@ -215,6 +215,7 @@ proc registerAdditionalOps*(c: PCtx) =
wrap2s(getEnv, osop)
wrap1s(existsEnv, osop)
wrap2svoid(putEnv, osop)
wrap1svoid(delEnv, osop)
wrap1s(dirExists, osop)
wrap1s(fileExists, osop)
wrapDangerous(writeFile, ioop)