Skip to content

Commit

Permalink
close file before removing it, addressing issue #3
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian-Robert Stöter committed Feb 18, 2018
1 parent 8758da5 commit db56cb6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions stempeg/read.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ def read_stems(
sp.call(cmd)
# read wav files
audio, rate = sf.read(tmps[tmp_id].name)
tmps[tmp_id].close()
os.remove(tmps[tmp_id].name)
stems.append(audio)

Expand Down

0 comments on commit db56cb6

Please sign in to comment.