aboutsummaryrefslogtreecommitdiffstats
path: root/wkhtmltopdf
diff options
context:
space:
mode:
authorMatti Varjokallio <firstname.lastname@gmail.com>2012-12-09 01:07:59 +0200
committerMatti Varjokallio <firstname.lastname@gmail.com>2012-12-09 01:07:59 +0200
commit5792a92b237c2cc5409fab4ab6c1e8078adf44d2 (patch)
tree79d230f7641bf55252dd34523c9a3cac9643619f /wkhtmltopdf
parent58018c55186016f5dcf675fe48c883758edbbfa7 (diff)
downloaddjango-wkhtmltopdf-5792a92b237c2cc5409fab4ab6c1e8078adf44d2.tar.gz
django-wkhtmltopdf-5792a92b237c2cc5409fab4ab6c1e8078adf44d2.tar.bz2
django-wkhtmltopdf-5792a92b237c2cc5409fab4ab6c1e8078adf44d2.zip
Fix for case when WKHTMLTOPDF_CMD consists of many parts.
Diffstat (limited to 'wkhtmltopdf')
-rw-r--r--wkhtmltopdf/utils.py2
1 files changed, 1 insertions, 1 deletions
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]))