diff --git a/Smelt.py b/Smelt.py index f9296fb..c2b7c34 100644 --- a/Smelt.py +++ b/Smelt.py @@ -11,7 +11,6 @@ 2. Use the GUI to select files and start processing. """ -import atexit import glob import platform import queue @@ -1089,6 +1088,14 @@ def enqueue_output(pipe, queue): return True +def cleanup(): + if os.path.exists(ffmpeg_path) and ffmpeg_path.__contains__("ffmpeg.exe/ffmpeg.exe"): + try: + os.remove(ffmpeg_path) + except Exception as e: + print(f"Failed to delete {ffmpeg_path}: {e}") + + app = QApplication(sys.argv) app.setStyle('Breeze')