This commit is contained in:
Kovid Goyal 2020-04-25 17:43:46 +05:30
parent a663e0e52a
commit 6fffa70b2a
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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()