From 5792a92b237c2cc5409fab4ab6c1e8078adf44d2 Mon Sep 17 00:00:00 2001 From: Matti Varjokallio Date: Sun, 9 Dec 2012 01:07:59 +0200 Subject: Fix for case when WKHTMLTOPDF_CMD consists of many parts. --- wkhtmltopdf/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wkhtmltopdf') diff --git a/wkhtmltopdf/utils.py b/wkhtmltopdf/utils.py index 0111736..298bbb6 100644 --- a/wkhtmltopdf/utils.py +++ b/wkhtmltopdf/utils.py @@ -79,7 +79,7 @@ def wkhtmltopdf(pages, output=None, **kwargs): env = dict(os.environ, **env) cmd = getattr(settings, 'WKHTMLTOPDF_CMD', 'wkhtmltopdf') - args = list(chain([cmd], + args = list(chain(cmd.split(), _options_to_args(**options), list(pages), [output])) -- cgit v1.2.3