From 61a1e3707b57a0f2b5d7a5a7783858ed308d2a94 Mon Sep 17 00:00:00 2001 From: "Erik-B. Ernst" Date: Fri, 31 Oct 2025 14:57:42 +0100 Subject: [PATCH] Fix Python 3.13 compatibility (ST 4201) --- plugin/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/utils.py b/plugin/utils.py index a49a6fd..7c28aa8 100644 --- a/plugin/utils.py +++ b/plugin/utils.py @@ -1,5 +1,5 @@ import re -from distutils import spawn +import shutil from functools import reduce REGEXP_ESCAPE_TRANSLATION_TABLE = str.maketrans( @@ -37,7 +37,7 @@ def escape(string, symbols): def is_executable(name): - return bool(spawn.find_executable(name)) + return bool(shutil.which(name)) def to_unpackable(val):