@@ -29,7 +29,7 @@ from unidecode import unidecode as normalize
2929from argparse import ArgumentParser as ap , SUPPRESS
3030from emoji import emojize , demojize , UNICODE_EMOJI_ENGLISH
3131from tkinter import Tk , filedialog as fd , messagebox as msgbox
32- from shutil import copyfile , move as mv , rmtree , unpack_archive
32+ from shutil import copyfile , move as mv , rmtree , unpack_archive , which
3333from PIL import Image , ImageChops , ImageColor as IC , ImageDraw , ImageFile , ImageFont , ImageOps , PngImagePlugin , UnidentifiedImageError
3434
3535#-------------------------#
@@ -84,8 +84,12 @@ exec(open_("Error_Handler"))
8484
8585# Getting Packages Location
8686if not system () == "Windows" :
87- import apt
88- cache = apt .Cache ()
87+ is_package_installed = {
88+ "ffmpeg" : which ("ffmpeg" ) is not None ,
89+ "gifsicle" : which ("gifsicle" ) is not None ,
90+ "oxipng" : which ("oxipng" ) is not None ,
91+ "pngquant" : which ("pngquant" ) is not None ,
92+ }
8993
9094exec (open_ ("Packages_Location/FFmpeg" ))
9195exec (open_ ("Folder/Name" ))
0 commit comments