From b8fa748c49ca4594ace4ea418835d3445dbe2654 Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Tue, 25 Apr 2017 22:04:08 +0100 Subject: [PATCH] Fix #187 on linux --- cps/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/helper.py b/cps/helper.py index e7b0a28e..33ac980e 100755 --- a/cps/helper.py +++ b/cps/helper.py @@ -81,7 +81,7 @@ 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) + stdout=subprocess.PIPE, stderr=subprocess.PIPE,shell=True ) # Poll process for new output until finished while True: nextline = p.stdout.readline()