diff options
author | Marc Tamlyn <marc.tamlyn@gmail.com> | 2012-12-10 01:19:25 -0800 |
---|---|---|
committer | Marc Tamlyn <marc.tamlyn@gmail.com> | 2012-12-10 01:19:25 -0800 |
commit | ba882d53aec38846fcc14acfda59b696de41df4b (patch) | |
tree | 79d230f7641bf55252dd34523c9a3cac9643619f | |
parent | 58018c55186016f5dcf675fe48c883758edbbfa7 (diff) | |
parent | 5792a92b237c2cc5409fab4ab6c1e8078adf44d2 (diff) | |
download | django-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.
-rw-r--r-- | wkhtmltopdf/utils.py | 2 |
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])) |