From 7012b8396f392aaa9695240e178946f094fcedc2 Mon Sep 17 00:00:00 2001 From: Shine1i Date: Mon, 9 Mar 2026 20:08:40 +0100 Subject: [PATCH] fix(studio): update temporary directory path to use system temp dir --- studio/backend/utils/paths/storage_roots.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/studio/backend/utils/paths/storage_roots.py b/studio/backend/utils/paths/storage_roots.py index 8eca28116b..58d2af16c1 100644 --- a/studio/backend/utils/paths/storage_roots.py +++ b/studio/backend/utils/paths/storage_roots.py @@ -1,6 +1,7 @@ from __future__ import annotations from pathlib import Path +import tempfile def studio_root() -> Path: @@ -32,7 +33,7 @@ def exports_root() -> Path: def tmp_root() -> Path: - return studio_root() / "tmp" + return Path(tempfile.gettempdir()) / "unsloth-studio" def seed_uploads_root() -> Path: