aboutsummaryrefslogtreecommitdiffstats
path: root/wkhtmltopdf
diff options
context:
space:
mode:
authorMarc Tamlyn <marc.tamlyn@gmail.com>2012-12-10 01:19:25 -0800
committerMarc Tamlyn <marc.tamlyn@gmail.com>2012-12-10 01:19:25 -0800
commitba882d53aec38846fcc14acfda59b696de41df4b (patch)
tree79d230f7641bf55252dd34523c9a3cac9643619f /wkhtmltopdf
parent58018c55186016f5dcf675fe48c883758edbbfa7 (diff)
parent5792a92b237c2cc5409fab4ab6c1e8078adf44d2 (diff)
downloaddjango-wkhtmltopdf-ba882d53aec38846fcc14acfda59b696de41df4b.tar.gz
django-wkhtmltopdf-ba882d53aec38846fcc14acfda59b696de41df4b.tar.bz2
django-wkhtmltopdf-ba882d53aec38846fcc14acfda59b696de41df4b.zip
Merge pull request #23 from shadowrock/fix-multipart-cmd
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]))