Skip to content

Commit

Permalink
Merge 91f80f8 into aafc609
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjw committed Feb 25, 2020
2 parents aafc609 + 91f80f8 commit 581dddb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion beetsplug/bpmanalyser/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from concurrent import futures
from optparse import OptionParser
from subprocess import Popen, PIPE
import sys

from beets.library import Library as BeatsLibrary
from beets.ui import Subcommand, decargs
Expand Down Expand Up @@ -146,7 +147,7 @@ def analyse(item):
def get_bpm_from_analyser_script(self, item_path):
log.debug("calling external script: {}".format(self.analyser_script_path))

proc = Popen(['python', self.analyser_script_path, item_path], stdout=PIPE, stderr=PIPE)
proc = Popen([sys.executable, self.analyser_script_path, item_path], stdout=PIPE, stderr=PIPE)
stdout, stderr = proc.communicate()

log.debug("External script error output: {}".format(stderr.decode("utf-8")))
Expand Down

0 comments on commit 581dddb

Please sign in to comment.