summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorcooldome <cdome@bk.ru>2018-03-05 18:06:47 +0000
committerAndreas Rumpf <rumpf_a@web.de>2018-03-05 19:06:47 +0100
commit4790b6d63f0442774037b00a98e19150248051e7 (patch)
tree20b68626c87d98765d1e7662c02a7fb1d5ea2949 /lib
parent86c3832201d5705463dfd7f33736385402cabdfc (diff)
downloadNim-4790b6d63f0442774037b00a98e19150248051e7.tar.gz
Fixes 7283 (#7284)
Diffstat (limited to 'lib')
-rw-r--r--lib/system/nimscript.nim4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/system/nimscript.nim b/lib/system/nimscript.nim
index f91dae41e..cb9f0ab01 100644
--- a/lib/system/nimscript.nim
+++ b/lib/system/nimscript.nim
@@ -114,6 +114,10 @@ proc existsEnv*(key: string): bool {.tags: [ReadIOEffect].} =
   ## Checks for the existence of an environment variable named `key`.
   builtin
 
+proc putEnv*(key, val: string) {.tags: [WriteIOEffect].} =
+  ## Sets the value of the environment variable named key to val.
+  builtin
+  
 proc fileExists*(filename: string): bool {.tags: [ReadIOEffect].} =
   ## Checks if the file exists.
   builtin