unify top directory
This commit is contained in:
parent
4df34b28e5
commit
d5ff48a1c5
6 changed files with 26 additions and 23 deletions
|
|
@ -7,8 +7,9 @@ import tempfile
|
|||
import subprocess
|
||||
|
||||
def cover(path):
|
||||
import settings
|
||||
image = tempfile.mkstemp('.jpg')[1]
|
||||
cmd = ['python3', '../reader/txt.js/txt.py', '-i', path, '-o', image]
|
||||
cmd = ['python3', os.path.join(settings.top_dir, 'reader/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