From 85640b82848f7146e3e04956e5dc848035d4bbbb Mon Sep 17 00:00:00 2001 From: Ching L Date: Thu, 6 Mar 2025 09:22:33 +0800 Subject: [PATCH] fix: Update config file path for image upload utility --- utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils.py b/utils.py index 8c896e5..b367b19 100644 --- a/utils.py +++ b/utils.py @@ -227,7 +227,8 @@ def upload_image(image_path, file_name=None): try: # 读取配置文件 config = configparser.ConfigParser() - config_path = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), 'env.ini') + # config_path = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), 'env.ini') + config_path = './env.ini' if not os.path.exists(config_path): logger.error(f"配置文件不存在: {config_path}") return None