python join is a method of string, not array. repeat that 100 times.
This commit is contained in:
parent
c343d3e9f8
commit
d7bc143079
|
@ -4,6 +4,6 @@ def print_url_list(urls, width, height, output_path):
|
||||||
clean_urls = []
|
clean_urls = []
|
||||||
for u in urls:
|
for u in urls:
|
||||||
clean_urls.append("'" + u + "'")
|
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)
|
os.system(cmd)
|
||||||
return output_path
|
return output_path
|
||||||
|
|
Loading…
Reference in New Issue
Block a user