mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 08:39:17 +01:00
Replaced find_executable with shutil.which for python 3.12
compatibility as distutils was deprecated.
This commit is contained in:
parent
1696789cbe
commit
6c3f93df2c
1 changed files with 2 additions and 2 deletions
|
|
@ -18,9 +18,9 @@ import errno
|
|||
import hashlib
|
||||
import json
|
||||
import os
|
||||
import shutil
|
||||
import subprocess
|
||||
import tempfile
|
||||
from distutils.spawn import find_executable
|
||||
|
||||
import requests
|
||||
|
||||
|
|
@ -84,7 +84,7 @@ class AcousticBrainzSubmitPlugin(plugins.BeetsPlugin):
|
|||
|
||||
# Get the executable location on the system, which we need
|
||||
# to calculate the SHA-1 hash.
|
||||
self.extractor = find_executable(self.extractor)
|
||||
self.extractor = shutil.which(self.extractor)
|
||||
|
||||
# Calculate extractor hash.
|
||||
self.extractor_sha = hashlib.sha1()
|
||||
|
|
|
|||
Loading…
Reference in a new issue