mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 16:42:42 +01:00
Absubmit fix failing to load distutils.spawn
This commit is contained in:
parent
b95c01fbea
commit
0975ee709b
1 changed files with 2 additions and 2 deletions
|
|
@ -24,7 +24,7 @@ import os
|
||||||
import subprocess
|
import subprocess
|
||||||
import tempfile
|
import tempfile
|
||||||
|
|
||||||
import distutils
|
from distutils import spawn
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
from beets import plugins
|
from beets import plugins
|
||||||
|
|
@ -81,7 +81,7 @@ class AcousticBrainzSubmitPlugin(plugins.BeetsPlugin):
|
||||||
pass
|
pass
|
||||||
# Get the executable location on the system,
|
# Get the executable location on the system,
|
||||||
# needed to calculate the sha1 hash.
|
# needed to calculate the sha1 hash.
|
||||||
self.extractor = distutils.spawn.find_executable(self.extractor)
|
self.extractor = spawn.find_executable(self.extractor)
|
||||||
|
|
||||||
# Calculate extractor hash.
|
# Calculate extractor hash.
|
||||||
self.extractor_sha = hashlib.sha1()
|
self.extractor_sha = hashlib.sha1()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue