Files
Server-scripts/torrent_api/main.py
T

14 lines
375 B
Python
Raw Normal View History

#!/home/lucas/scripts/torrent_api/.venv/bin/python
import sys
from pathlib import Path
from dotenv import load_dotenv
from torrent_api.cli import main
if __name__ == "__main__":
2026-11-23 14:37:09 +01:00
working_env = Path.cwd() / ".env"
execution_env = Path(__file__).resolve().parent / ".env"
load_dotenv(working_env if working_env.is_file() else execution_env)
sys.exit(main())