From 35f3465d869b510e9e0d4bd01aadaabe08e98634 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 18 Mar 2026 05:00:40 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- studio/backend/run.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/studio/backend/run.py b/studio/backend/run.py index d2e9677bab..38d7196475 100644 --- a/studio/backend/run.py +++ b/studio/backend/run.py @@ -33,6 +33,7 @@ def _fix_torch_cuda_ld_path(): return False try: import importlib.util + spec = importlib.util.find_spec("torch") if not spec or not spec.origin: return False @@ -54,7 +55,7 @@ def _fix_torch_cuda_ld_path(): # Already at the front -- nothing to do existing = ld_path.split(":") - if existing[:len(lib_dirs)] == lib_dirs: + if existing[: len(lib_dirs)] == lib_dirs: return False # Prepend torch dirs, deduplicate