diff --git a/source/dub/internal/utils.d b/source/dub/internal/utils.d index 766f039..c1ba34e 100644 --- a/source/dub/internal/utils.d +++ b/source/dub/internal/utils.d @@ -28,13 +28,7 @@ Path getTempDir() { - auto tmp = environment.get("TEMP"); - if( !tmp.length ) tmp = environment.get("TMP"); - if( !tmp.length ){ - version(Posix) tmp = "/tmp/"; - else tmp = "./"; - } - return Path(tmp); + return std.file.tempDir; } bool isEmptyDir(Path p) {