diff --git a/.gitignore b/.gitignore index c48f48e..e4480fa 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ .env /.venv /logs/* -/__pycache__ \ No newline at end of file +*/__pycache__ \ No newline at end of file diff --git a/get_data.py b/get_data.py index 19e5746..fa21e2b 100644 --- a/get_data.py +++ b/get_data.py @@ -25,7 +25,13 @@ _stop_event = Event() _worker_thread: Thread | None = None # Загружаем переменные из .env -load_dotenv(dotenv_path="/mnt/khl/.env") +if load_dotenv(dotenv_path="/mnt/khl/.env",verbose=True): + print("Добавить в лог что был найден файл окружения!!") + pass +else: + load_dotenv() + print("Добавить в лог что не был найден файл окружения!!") + api_user = os.getenv("API_USER") api_pass = os.getenv("API_PASS") league = os.getenv("LEAGUE")