feat: add entry point for pyinstaller executable

This commit is contained in:
Benex254
2024-11-11 12:56:26 +03:00
parent 29cc6cad09
commit 8d4b71e0c8

14
fastanime/fastanime.py Executable file
View File

@@ -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()