From 9e7ec1da2c7503df3414a8cb276e144de6dd4a77 Mon Sep 17 00:00:00 2001 From: Hoang Hong Quan Date: Wed, 22 Oct 2025 09:15:19 +0700 Subject: [PATCH] Move temporary dir cleanup --- OpCore-Simplify.py | 2 +- Scripts/utils.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/OpCore-Simplify.py b/OpCore-Simplify.py index 78ab484..29d1f9a 100644 --- a/OpCore-Simplify.py +++ b/OpCore-Simplify.py @@ -20,6 +20,7 @@ import time class OCPE: def __init__(self): self.u = utils.Utils("OpCore Simplify") + self.u.clean_temporary_dir() self.ac = acpi_guru.ACPIGuru() self.c = compatibility_checker.CompatibilityChecker() self.co = config_prodigy.ConfigProdigy() @@ -28,7 +29,6 @@ class OCPE: self.k = kext_maestro.KextMaestro() self.s = smbios.SMBIOS() self.r = run.Run() - self.u = utils.Utils() self.result_dir = self.u.get_temporary_dir() def select_hardware_report(self): diff --git a/Scripts/utils.py b/Scripts/utils.py index 19e314e..fc9f6ff 100644 --- a/Scripts/utils.py +++ b/Scripts/utils.py @@ -13,7 +13,6 @@ import tempfile class Utils: def __init__(self, script_name = "OpCore Simplify"): self.script_name = script_name - self.clean_temporary_dir() def clean_temporary_dir(self): temporary_dir = tempfile.gettempdir()