From ab63d08d71ad47346c5c612869b8073a5c11c877 Mon Sep 17 00:00:00 2001 From: OzzieIsaacs Date: Tue, 24 Jul 2018 20:43:40 +0200 Subject: [PATCH] Fix for linux subprocess calibre-convert --- cps/converter.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/cps/converter.py b/cps/converter.py index aa8bd411..3865a508 100644 --- a/cps/converter.py +++ b/cps/converter.py @@ -48,12 +48,6 @@ def versionCalibre(): def convert_kindlegen(file_path, book): error_message = None - # vendorpath = os.path.join(os.path.normpath(os.path.dirname(os.path.realpath(__file__)) + - # os.sep + "../vendor" + os.sep)) - #if sys.platform == "win32": - # kindlegen = (os.path.join(vendorpath, u"kindlegen.exe")).encode(sys.getfilesystemencoding()) - #else: - # kindlegen = (os.path.join(vendorpath, u"kindlegen")).encode(sys.getfilesystemencoding()) if not os.path.exists(ub.config.config_converterpath): error_message = _(u"kindlegen binary %(kindlepath)s not found", kindlepath=ub.config.config_converterpath) web.app.logger.error("convert_kindlegen: " + error_message)