From 8d4b71e0c8881d89b35ad2359d20d94b1593ad2a Mon Sep 17 00:00:00 2001 From: Benex254 Date: Mon, 11 Nov 2024 12:56:26 +0300 Subject: [PATCH] feat: add entry point for pyinstaller executable --- fastanime/fastanime.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 fastanime/fastanime.py diff --git a/fastanime/fastanime.py b/fastanime/fastanime.py new file mode 100755 index 0000000..28f1419 --- /dev/null +++ b/fastanime/fastanime.py @@ -0,0 +1,14 @@ +#!/usr/bin/env python3 +import os +import sys + +# Add the application root directory to Python path +if getattr(sys, "frozen", False): + application_path = os.path.dirname(sys.executable) + sys.path.insert(0, application_path) + +# Import and run the main application +from fastanime import FastAnime + +if __name__ == "__main__": + FastAnime()