From d616898802dfe7e5dd648bcf53c6d1f86b6d3642 Mon Sep 17 00:00:00 2001
From: Bin <bin.zheng@slooong.com>
Date: 星期三, 17 十二月 2025 14:33:06 +0800
Subject: [PATCH] 图片路径测试
---
label_studio/data_export/mixins.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/label_studio/data_export/mixins.py b/label_studio/data_export/mixins.py
index 0d084f7..6406a25 100644
--- a/label_studio/data_export/mixins.py
+++ b/label_studio/data_export/mixins.py
@@ -2,6 +2,7 @@
import io
import json
import logging
+import os
import pathlib
import shutil
from datetime import datetime
@@ -351,7 +352,7 @@
converter = Converter(
config=self.project.get_parsed_config(),
project_dir=None,
- upload_dir=out_dir,
+ upload_dir=os.getenv('LS_UPLOAD_DIR', '/data'), # 优先使用环境变量
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