mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
a663e0e52a
commit
6fffa70b2a
@ -882,5 +882,15 @@ def profile():
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
def develop():
|
||||||
|
from calibre.ptempfile import TemporaryDirectory
|
||||||
|
path = sys.argv[-1]
|
||||||
|
with TemporaryDirectory() as tdir:
|
||||||
|
return render(
|
||||||
|
path, tdir, serialize_metadata=True,
|
||||||
|
extract_annotations=True, virtualize_resources=False, max_workers=1
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
profile()
|
develop()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user