From f3e637e299e2e9fc01fee362b89e20fb5f9bad4a Mon Sep 17 00:00:00 2001 From: Ian Weller Date: Fri, 3 Oct 2008 19:11:41 -0500 Subject: Add more usability to cmdline --- fedora_business_cards/frontend.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fedora_business_cards/frontend.py b/fedora_business_cards/frontend.py index c9e47c7..05a1317 100644 --- a/fedora_business_cards/frontend.py +++ b/fedora_business_cards/frontend.py @@ -146,6 +146,8 @@ def cmdline(): lineno == '3' or lineno == '4' or lineno == '5': lines[int(lineno)] = newdata # generate front of business card + print "Generating front...", + sys.stdout.flush() xml = generate.gen_front(name, title, lines, options.template) if options.output == "svg": export.svg_to_file(xml, options.username+'-front.'+options.output) @@ -153,9 +155,13 @@ def cmdline(): export.svg_to_pdf_png(xml, options.username+'-front.'+options.output, options.output, options.dpi) # generate back of business card + print "Generating back...", + sys.stdout.flush() xml = generate.gen_back(options.template) if options.output == "svg": export.svg_to_file(xml, options.username+'-back.'+options.output) else: export.svg_to_pdf_png(xml, options.username+'-back.'+options.output, options.output, options.dpi) + print "Done." + sys.stdout.flush() -- cgit