Skip to content

Commit 3d1f12f

Browse files
authored
Merge pull request darktable-org#500 from darktable-org/fix_create_tmp_file_windows
lib/dtutils/file - os.tmpname now works correctly on windows, removed
2 parents b07c680 + a079860 commit 3d1f12f

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/dtutils/file.lua

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -861,9 +861,6 @@ dtutils_file.libdoc.functions["create_tmp_file"] = {
861861

862862
function dtutils_file.create_tmp_file()
863863
local tmp_file = os.tmpname()
864-
if dt.configuration.running_os == "windows" then
865-
tmp_file = dt.configuration.tmp_dir .. tmp_file -- windows os.tmpname() defaults to root directory
866-
end
867864

868865
local f = io.open(tmp_file, "w")
869866
if not f then

0 commit comments

Comments
 (0)