From d7bc14307993ad00c3cd3b541f862b66e8b771b5 Mon Sep 17 00:00:00 2001 From: sanj Date: Wed, 28 Jul 2010 23:06:58 +0530 Subject: [PATCH] python join is a method of string, not array. repeat that 100 times. --- edgware/editor/print_pdf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edgware/editor/print_pdf.py b/edgware/editor/print_pdf.py index 662dc42..1163ab8 100644 --- a/edgware/editor/print_pdf.py +++ b/edgware/editor/print_pdf.py @@ -4,6 +4,6 @@ def print_url_list(urls, width, height, output_path): clean_urls = [] for u in urls: clean_urls.append("'" + u + "'") - cmd = "wkhtmltopdf --page-width %d --page-height %d %s '%s'" % (width, height, clean_urls.join(" "), output_path,) + cmd = "wkhtmltopdf --page-width %d --page-height %d %s '%s'" % (width, height, " ".join(clean_urls), output_path,) os.system(cmd) return output_path