From a73372d71a930e22303fa1c4e447e204b5c3e443 Mon Sep 17 00:00:00 2001 From: OzzieIsaacs Date: Fri, 5 May 2017 21:05:52 +0200 Subject: [PATCH] Make kindlegen work again --- cps/helper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cps/helper.py b/cps/helper.py index fd004eda..eccbcd23 100755 --- a/cps/helper.py +++ b/cps/helper.py @@ -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()