diff options
author | cooldome <cdome@bk.ru> | 2018-03-05 18:06:47 +0000 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-03-05 19:06:47 +0100 |
commit | 4790b6d63f0442774037b00a98e19150248051e7 (patch) | |
tree | 20b68626c87d98765d1e7662c02a7fb1d5ea2949 /lib | |
parent | 86c3832201d5705463dfd7f33736385402cabdfc (diff) | |
download | Nim-4790b6d63f0442774037b00a98e19150248051e7.tar.gz |
Fixes 7283 (#7284)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/system/nimscript.nim | 4 |
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 |