1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-12-25 01:20:32 +00:00

Make kindlegen work again

This commit is contained in:
OzzieIsaacs 2017-05-05 21:05:52 +02:00
parent 6d597f96e5
commit a73372d71a

View File

@ -80,8 +80,8 @@ def make_mobi(book_id, calibrepath):
file_path = os.path.join(calibrepath, book.path, data.name)
if os.path.exists(file_path + u".epub"):
p = subprocess.Popen([kindlegen, ("\"" + file_path + u".epub\"").encode(sys.getfilesystemencoding())],
stdout=subprocess.PIPE, stderr=subprocess.PIPE )
p = subprocess.Popen((kindlegen + " \"" + file_path + u".epub\"").encode(sys.getfilesystemencoding()),
stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
# Poll process for new output until finished
while True:
nextline = p.stdout.readline()