mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix manual not building
This commit is contained in:
parent
b2b5395139
commit
1e96510e00
@ -9,7 +9,6 @@ import os
|
|||||||
import re
|
import re
|
||||||
import subprocess
|
import subprocess
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
from lzma.xz import compress, decompress
|
|
||||||
|
|
||||||
from calibre.constants import FAKE_HOST, FAKE_PROTOCOL, __appname__, __version__
|
from calibre.constants import FAKE_HOST, FAKE_PROTOCOL, __appname__, __version__
|
||||||
from calibre.ptempfile import TemporaryDirectory
|
from calibre.ptempfile import TemporaryDirectory
|
||||||
@ -27,6 +26,7 @@ def abspath(x):
|
|||||||
|
|
||||||
|
|
||||||
def update_rapydscript():
|
def update_rapydscript():
|
||||||
|
from lzma.xz import compress
|
||||||
d = os.path.dirname
|
d = os.path.dirname
|
||||||
base = d(d(d(d(d(abspath(__file__))))))
|
base = d(d(d(d(d(abspath(__file__))))))
|
||||||
base = os.path.join(base, 'rapydscript')
|
base = os.path.join(base, 'rapydscript')
|
||||||
@ -47,6 +47,7 @@ def to_dict(obj):
|
|||||||
|
|
||||||
|
|
||||||
def compiler():
|
def compiler():
|
||||||
|
from lzma.xz import decompress
|
||||||
ans = getattr(compiler, 'ans', None)
|
ans = getattr(compiler, 'ans', None)
|
||||||
if ans is not None:
|
if ans is not None:
|
||||||
return ans
|
return ans
|
||||||
|
Loading…
x
Reference in New Issue
Block a user