Skip to content

Commit

Permalink
new cleanup()
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilJohan committed Jul 24, 2024
1 parent 827ff68 commit 21f1f2b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Smelt.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
2. Use the GUI to select files and start processing.
"""
import atexit
import glob
import platform
import queue
Expand Down Expand Up @@ -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')

Expand Down

0 comments on commit 21f1f2b

Please sign in to comment.