From c5a399ed22594636c71a646e728e192a98f3336c Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 8 Aug 2024 18:05:22 +0800 Subject: [PATCH] bugfix --- appPublic/folderUtils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/appPublic/folderUtils.py b/appPublic/folderUtils.py index 5c8a121..88dd5dc 100755 --- a/appPublic/folderUtils.py +++ b/appPublic/folderUtils.py @@ -13,8 +13,8 @@ import win32api """ import sys -def temp_file(suffix='.txt'): - x = tempfile.mkstemp(suffix=suffix) +def temp_file(suffix=None, prefix=None, dir=None, text=False): + x = tempfile.mkstemp(suffix=suffix, prefix=frefix, dir=dir, text=text) os.close(x[0]) return x[1]