Skip to content

Commit 6c3f93d

Browse files
committed
Replaced find_executable with shutil.which for python 3.12
compatibility as distutils was deprecated.
1 parent 1696789 commit 6c3f93d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

beetsplug/absubmit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
import hashlib
1919
import json
2020
import os
21+
import shutil
2122
import subprocess
2223
import tempfile
23-
from distutils.spawn import find_executable
2424

2525
import requests
2626

@@ -84,7 +84,7 @@ def __init__(self):
8484

8585
# Get the executable location on the system, which we need
8686
# to calculate the SHA-1 hash.
87-
self.extractor = find_executable(self.extractor)
87+
self.extractor = shutil.which(self.extractor)
8888

8989
# Calculate extractor hash.
9090
self.extractor_sha = hashlib.sha1()

0 commit comments

Comments
 (0)