mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix sequencing of imports in manual build scripts
This commit is contained in:
parent
c3595c7b6c
commit
40de487795
@ -17,11 +17,10 @@ BASE = d(a(__file__))
|
||||
SPHINX_BUILD = ['sphinx-build']
|
||||
|
||||
sys.path.insert(0, d(BASE))
|
||||
from calibre.ebooks.oeb.polish.container import epub_to_azw3
|
||||
|
||||
from setup import __appname__, __version__
|
||||
|
||||
sys.path.remove(d(BASE))
|
||||
from calibre.ebooks.oeb.polish.container import epub_to_azw3
|
||||
|
||||
|
||||
def sphinx_build(language, base, builder='html', bdir='html', t=None, quiet=True, very_quiet=False):
|
||||
|
@ -18,15 +18,17 @@ from datetime import date
|
||||
|
||||
# If your extensions are in another directory, add it here.
|
||||
base = os.path.dirname(os.path.abspath(__file__))
|
||||
sys.path.append(base)
|
||||
sys.path.insert(0, os.path.dirname(base))
|
||||
from setup import __appname__, __version__
|
||||
|
||||
sys.path.append(base)
|
||||
|
||||
import calibre.utils.img as cimg
|
||||
import custom
|
||||
from calibre.utils.localization import localize_website_link
|
||||
|
||||
from setup import __appname__, __version__
|
||||
|
||||
del sys.path[0]
|
||||
|
||||
custom, cimg
|
||||
# General configuration
|
||||
# ---------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user