diff --git a/liteyuki/utils/driver_manager/auto_set_env.py b/liteyuki/utils/driver_manager/auto_set_env.py index 88466d2..94e5b3b 100644 --- a/liteyuki/utils/driver_manager/auto_set_env.py +++ b/liteyuki/utils/driver_manager/auto_set_env.py @@ -7,8 +7,9 @@ from .defines import * def auto_set_env(config: dict): - dotenv.load_dotenv() + dotenv.load_dotenv(".env") if os.getenv("DRIVER", None) is not None: + print(os.getenv("DRIVER")) nonebot.logger.info("Driver already set in environment variable, skip auto configure.") return if config.get("satori", {'enable': False}).get("enable", False):