unify top directory

This commit is contained in:
j 2024-06-10 14:57:12 +01:00
commit d5ff48a1c5
6 changed files with 26 additions and 23 deletions

View file

@ -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: