Skip to content

Commit

Permalink
Fixed OSError 6 when packaging with --windowed.
Browse files Browse the repository at this point in the history
  • Loading branch information
10se1ucgo committed Mar 19, 2016
1 parent 3fb9446 commit 08b8bf6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ffmpeg.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,4 +347,4 @@ def convert_audio(file, dest, rate, vol, codec="pcm_s16le"):
# cmd = cmd.format(ff=find(), i=file, codec=codec, rate=rate, vol=vol / 100, dest=dest)
cmd = (find(), '-y', '-i', file, '-map_metadata', '-1', '-ac', '1', '-aq', '100',
'-acodec', codec, '-ar', rate, '-af', 'volume={vol}'.format(vol=vol/100), '{dest}.wav'.format(dest=dest))
return subprocess.check_output(cmd, stderr=subprocess.STDOUT)
return subprocess.check_output(cmd, stdin=subprocess.PIPE, stderr=subprocess.PIPE)
4 changes: 2 additions & 2 deletions seven_zip.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# along with pyjam. If not, see <http://www.gnu.org/licenses/>.

# An interface to 7zip
from subprocess import call
import subprocess

try:
from shutil import which
Expand All @@ -30,4 +30,4 @@ def find():

def extract_single(archive, file, dest):
cmd = "{bin} e -y {archive} -o{dest} {file} -r".format(bin=find(), archive=archive, dest=dest, file=file)
call(cmd)
subprocess.call(cmd, stdin=subprocess.PIPE, stderr=subprocess.PIPE, stdout=subprocess.PIPE)

0 comments on commit 08b8bf6

Please sign in to comment.