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']
|
SPHINX_BUILD = ['sphinx-build']
|
||||||
|
|
||||||
sys.path.insert(0, d(BASE))
|
sys.path.insert(0, d(BASE))
|
||||||
from calibre.ebooks.oeb.polish.container import epub_to_azw3
|
|
||||||
|
|
||||||
from setup import __appname__, __version__
|
from setup import __appname__, __version__
|
||||||
|
|
||||||
sys.path.remove(d(BASE))
|
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):
|
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.
|
# If your extensions are in another directory, add it here.
|
||||||
base = os.path.dirname(os.path.abspath(__file__))
|
base = os.path.dirname(os.path.abspath(__file__))
|
||||||
sys.path.append(base)
|
|
||||||
sys.path.insert(0, os.path.dirname(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 calibre.utils.img as cimg
|
||||||
import custom
|
import custom
|
||||||
from calibre.utils.localization import localize_website_link
|
from calibre.utils.localization import localize_website_link
|
||||||
|
|
||||||
from setup import __appname__, __version__
|
|
||||||
|
|
||||||
del sys.path[0]
|
del sys.path[0]
|
||||||
|
|
||||||
custom, cimg
|
custom, cimg
|
||||||
# General configuration
|
# General configuration
|
||||||
# ---------------------
|
# ---------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user