2026-11-22 16:15:29 +01:00
|
|
|
#!/home/lucas/scripts/torrent_api/.venv/bin/python
|
|
|
|
|
|
|
|
|
|
import sys
|
2026-11-23 12:28:30 +01:00
|
|
|
from pathlib import Path
|
2026-11-22 16:15:29 +01:00
|
|
|
|
|
|
|
|
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)
|
2026-11-22 16:15:29 +01:00
|
|
|
sys.exit(main())
|