From f91a4e13990c409d897c9cdec4376c196667da40 Mon Sep 17 00:00:00 2001 From: DannyAAM Date: Tue, 31 Oct 2023 22:05:00 +0800 Subject: [PATCH] fix missed tmp cleanup --- MSET9_installer_script/mset9.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/MSET9_installer_script/mset9.py b/MSET9_installer_script/mset9.py index 7b79632..f70cc43 100644 --- a/MSET9_installer_script/mset9.py +++ b/MSET9_installer_script/mset9.py @@ -119,9 +119,7 @@ if osver == "Darwin": if dirname.startswith(tmpprefix): dirpath = f"{systmp}/{dirname}" script = f"{dirpath}/mset9.py" - if not os.path.exists(script): - continue - elif os.stat(script).st_mtime > os.stat(thisfile).st_mtime: + if os.path.exists(script) and os.stat(script).st_mtime > os.stat(thisfile).st_mtime: tmpdir = dirpath break else: