run txt cover script with python3
This commit is contained in:
parent
d78c30b163
commit
9db6adc222
2 changed files with 4 additions and 6 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue