Move temporary dir cleanup

This commit is contained in:
Hoang Hong Quan
2025-10-22 09:15:19 +07:00
parent 542ad9623c
commit 9e7ec1da2c
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -20,6 +20,7 @@ import time
class OCPE: class OCPE:
def __init__(self): def __init__(self):
self.u = utils.Utils("OpCore Simplify") self.u = utils.Utils("OpCore Simplify")
self.u.clean_temporary_dir()
self.ac = acpi_guru.ACPIGuru() self.ac = acpi_guru.ACPIGuru()
self.c = compatibility_checker.CompatibilityChecker() self.c = compatibility_checker.CompatibilityChecker()
self.co = config_prodigy.ConfigProdigy() self.co = config_prodigy.ConfigProdigy()
@@ -28,7 +29,6 @@ class OCPE:
self.k = kext_maestro.KextMaestro() self.k = kext_maestro.KextMaestro()
self.s = smbios.SMBIOS() self.s = smbios.SMBIOS()
self.r = run.Run() self.r = run.Run()
self.u = utils.Utils()
self.result_dir = self.u.get_temporary_dir() self.result_dir = self.u.get_temporary_dir()
def select_hardware_report(self): def select_hardware_report(self):
-1
View File
@@ -13,7 +13,6 @@ import tempfile
class Utils: class Utils:
def __init__(self, script_name = "OpCore Simplify"): def __init__(self, script_name = "OpCore Simplify"):
self.script_name = script_name self.script_name = script_name
self.clean_temporary_dir()
def clean_temporary_dir(self): def clean_temporary_dir(self):
temporary_dir = tempfile.gettempdir() temporary_dir = tempfile.gettempdir()