From 8a24c0b7a5fc196956063666a469b206fc91dc3c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 4 Jul 2017 22:11:30 +0530 Subject: [PATCH] ... --- manual/build.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manual/build.py b/manual/build.py index a3c3ed0b6f..2f906800b6 100755 --- a/manual/build.py +++ b/manual/build.py @@ -16,7 +16,8 @@ SPHINX_BUILD = 'sphinx-build2' sys.path.insert(0, d(BASE)) from setup import __appname__, __version__ -del sys.path[0] +from calibre.ebooks.oeb.polish.container import epub_to_azw3 +sys.path.remove(d(BASE)) def sphinx_build(language, base, builder='html', bdir='html', t=None, quiet=True, very_quiet=False): @@ -65,7 +66,6 @@ def build_manual(language, base): pdf_dest = j(onlinedir, 'calibre.pdf') shutil.copyfile(j(epubdir, 'calibre.epub'), epub_dest) shutil.copyfile(j(latexdir, 'calibre.pdf'), pdf_dest) - from calibre.ebooks.oeb.polish.container import epub_to_azw3 epub_to_azw3(epub_dest)