mirror of
https://github.com/beetbox/beets.git
synced 2026-01-26 10:02:31 +01:00
bytestringify tmpdir in convert plugin
This works fine in py 3.5, but not 3.4
This commit is contained in:
parent
cb6efc4c22
commit
3db81a3345
1 changed files with 1 additions and 0 deletions
|
|
@ -428,6 +428,7 @@ class ConvertPlugin(BeetsPlugin):
|
|||
|
||||
# Create a temporary file for the conversion.
|
||||
tmpdir = self.config['tmpdir'].get()
|
||||
tmpdir = util.bytestring_path(tmpdir) if tmpdir else None
|
||||
fd, dest = tempfile.mkstemp(b'.' + ext, dir=tmpdir)
|
||||
os.close(fd)
|
||||
dest = util.bytestring_path(dest)
|
||||
|
|
|
|||
Loading…
Reference in a new issue