Content server: Fix conversion of comics not working. Fixes #1847017 [WebUI conversion failed for all comic cbz/cbr format, GUI works fine](https://bugs.launchpad.net/calibre/+bug/1847017)

Could not launch non simple workers from within a simple worker. Now
fixed.
This commit is contained in:
Kovid Goyal 2019-11-04 17:46:45 +05:30
parent 8723d0ee27
commit 91e2b16deb
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -177,7 +177,7 @@ def main():
# so launch the gui as usual # so launch the gui as usual
from calibre.gui2.main import main as gui_main from calibre.gui2.main import main as gui_main
return gui_main(['calibre']) return gui_main(['calibre'])
csw = os.environ.get('CALIBRE_SIMPLE_WORKER', None) csw = os.environ.pop('CALIBRE_SIMPLE_WORKER', None)
if csw: if csw:
mod, _, func = csw.partition(':') mod, _, func = csw.partition(':')
mod = importlib.import_module(mod) mod = importlib.import_module(mod)