From 3eec248dabdcdfb837185fbf1651eed6698aea65 Mon Sep 17 00:00:00 2001 From: Colin Maudry Date: Thu, 25 Jun 2026 09:50:19 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20tokens=5Fcli=20est=20maintenant=20autonom?= =?UTF-8?q?e=20pour=20r=C3=A9cup=C3=A9rer=20l'env?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/tokens_cli.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/api/tokens_cli.py b/src/api/tokens_cli.py index 287ac06..34072e6 100644 --- a/src/api/tokens_cli.py +++ b/src/api/tokens_cli.py @@ -2,10 +2,13 @@ import argparse import os import sys +from dotenv import load_dotenv + from src.api import tokens_db def main(argv=None, env=None) -> int: + load_dotenv() env = env if env is not None else os.environ parser = argparse.ArgumentParser(prog="python -m src.api.tokens_cli") sub = parser.add_subparsers(dest="cmd", required=True)