From 2b99d77d73ba568beff0a549534017caaad8a6de Mon Sep 17 00:00:00 2001
From: Bin <bin.zheng@slooong.com>
Date: 星期三, 17 十二月 2025 14:54:32 +0800
Subject: [PATCH] 测试脚本_6
---
label_studio/data_export/mixins.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/label_studio/data_export/mixins.py b/label_studio/data_export/mixins.py
index 6406a25..d41e521 100644
--- a/label_studio/data_export/mixins.py
+++ b/label_studio/data_export/mixins.py
@@ -352,7 +352,7 @@
converter = Converter(
config=self.project.get_parsed_config(),
project_dir=None,
- upload_dir=os.getenv('LS_UPLOAD_DIR', '/data'), # 优先使用环境变量
+ upload_dir=os.path.join(settings.MEDIA_ROOT, settings.UPLOAD_DIR),
download_resources=download_resources,
# for downloading resource we need access to the API
access_token=self.project.organization.created_by.auth_token.key,
--
Gitblit v1.9.3