X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/cba76114f031d47c93e1af947a350230cbef0a1f..6df7f4fb5a5f4f7d1fcf059837219a912a14dcd8:/librarian/book2anything.py diff --git a/librarian/book2anything.py b/librarian/book2anything.py index b8b8d27..b60cd0f 100755 --- a/librarian/book2anything.py +++ b/librarian/book2anything.py @@ -10,7 +10,6 @@ import optparse from librarian import DirDocProvider, ParseError from librarian.parser import WLDocument -from librarian.cover import WLCover class Option(object): @@ -88,7 +87,7 @@ class Book2Anything(object): for option in cls.parser_options: parser_args[option.name()] = option.value(options) # Prepare additional args for transform method. - transform_args = {} + transform_args = {"verbose": options.verbose} for option in cls.transform_options: transform_args[option.name()] = option.value(options) # Add flags to transform_args, if any. @@ -98,6 +97,7 @@ class Book2Anything(object): transform_args['flags'] = transform_flags # Add cover support, if any. if cls.uses_cover: + from librarian.styles.wolnelektury.cover import WLCover if options.image_cache: def cover_class(*args, **kwargs): return WLCover(image_cache=options.image_cache, *args, **kwargs)