run txt cover script with python3

This commit is contained in:
j 2014-10-01 10:50:12 +02:00
commit 9db6adc222
2 changed files with 4 additions and 6 deletions

View file

@ -9,7 +9,7 @@ import subprocess
def cover(path):
image = tempfile.mkstemp('.jpg')[1]
cmd = ['python2', 'static/txt.js/txt.py', '-i', path, '-o', image]
cmd = ['python3', 'static/txt.js/txt.py', '-i', path, '-o', image]
p = subprocess.Popen(cmd, close_fds=True)
p.wait()
with open(image, 'rb') as fd: