Commit b309c1fc authored by OzzieIsaacs's avatar OzzieIsaacs

Fix filenames (Escape "\") for searching calibre excecutable on windows

parent b9a802a1
...@@ -360,10 +360,10 @@ def _migrate_table(session, orm_class): ...@@ -360,10 +360,10 @@ def _migrate_table(session, orm_class):
def autodetect_calibre_binary(): def autodetect_calibre_binary():
if sys.platform == "win32": if sys.platform == "win32":
calibre_path = ["C:\\program files\calibre\ebook-convert.exe", calibre_path = ["C:\\program files\\calibre\\ebook-convert.exe",
"C:\\program files(x86)\calibre\ebook-convert.exe", "C:\\program files(x86)\\calibre\\ebook-convert.exe",
"C:\\program files(x86)\calibre2\ebook-convert.exe", "C:\\program files(x86)\\calibre2\\ebook-convert.exe",
"C:\\program files\calibre2\ebook-convert.exe"] "C:\\program files\\calibre2\\ebook-convert.exe"]
else: else:
calibre_path = ["/opt/calibre/ebook-convert"] calibre_path = ["/opt/calibre/ebook-convert"]
for element in calibre_path: for element in calibre_path:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment