From b309c1fc91409b9d01467438b6c96b928f77f8e9 Mon Sep 17 00:00:00 2001 From: OzzieIsaacs Date: Sun, 9 Aug 2020 15:11:54 +0200 Subject: [PATCH] Fix filenames (Escape "\") for searching calibre excecutable on windows --- cps/config_sql.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cps/config_sql.py b/cps/config_sql.py index f0cd78af..172ec88d 100644 --- a/cps/config_sql.py +++ b/cps/config_sql.py @@ -360,10 +360,10 @@ def _migrate_table(session, orm_class): def autodetect_calibre_binary(): if sys.platform == "win32": - calibre_path = ["C:\\program files\calibre\ebook-convert.exe", - "C:\\program files(x86)\calibre\ebook-convert.exe", - "C:\\program files(x86)\calibre2\ebook-convert.exe", - "C:\\program files\calibre2\ebook-convert.exe"] + calibre_path = ["C:\\program files\\calibre\\ebook-convert.exe", + "C:\\program files(x86)\\calibre\\ebook-convert.exe", + "C:\\program files(x86)\\calibre2\\ebook-convert.exe", + "C:\\program files\\calibre2\\ebook-convert.exe"] else: calibre_path = ["/opt/calibre/ebook-convert"] for element in calibre_path: