From 2b1a671f1cbe4d3443537435ef0f0cddf928abbf Mon Sep 17 00:00:00 2001 From: Vindaar Date: Fri, 20 Oct 2023 19:04:01 +0200 Subject: 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). --- lib/std/tempfiles.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/std') 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 -- cgit 1.4.1-2-gfad0