mirror of
https://github.com/Benexl/FastAnime.git
synced 2025-12-10 23:00:41 -08:00
13 lines
335 B
Python
13 lines
335 B
Python
import shutil
|
|
import subprocess
|
|
from sys import exit
|
|
|
|
|
|
def feh_manga_viewer(image_links: list[str], window_title: str):
|
|
FEH_EXECUTABLE = shutil.which("feh")
|
|
if not FEH_EXECUTABLE:
|
|
print("feh not found")
|
|
exit(1)
|
|
commands = [FEH_EXECUTABLE, *image_links, "--title", window_title]
|
|
subprocess.run(commands)
|