summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorVindaar <basti90@gmail.com>2023-10-20 19:04:01 +0200
committerGitHub <noreply@github.com>2023-10-20 19:04:01 +0200
commit2b1a671f1cbe4d3443537435ef0f0cddf928abbf (patch)
treeb128a3a181eb3c75c44ba461236205adad71acb9
parente10878085eaf215a6782cde5c2ea79d4cdf0f40e (diff)
downloadNim-2b1a671f1cbe4d3443537435ef0f0cddf928abbf.tar.gz
explicitly import using `std/` in `tempfiles.nim` (#22851)
At least on modern Nim `tempfiles` is not usable if the user has
https://github.com/oprypin/nim-random installed, because the compiler
picks the nimble path over the stdlib path (apparently).
-rw-r--r--lib/std/tempfiles.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/tempfiles.nim b/lib/std/tempfiles.nim
index 1160aaaad..582cf531e 100644
--- a/lib/std/tempfiles.nim
+++ b/lib/std/tempfiles.nim
@@ -17,7 +17,7 @@ See also:
 * `mkstemp` (posix), refs https://man7.org/linux/man-pages/man3/mkstemp.3.html
 ]#
 
-import os, random
+import std / [os, random]
 
 when defined(nimPreviewSlimSystem):
   import std/syncio