From 7640bf135740da724472b8021944967700733bed Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Sun, 8 Apr 2018 02:21:18 +0200 Subject: Fix --- patternutils/commands/targs.py | 4 ++-- patternutils/config.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/patternutils/commands/targs.py b/patternutils/commands/targs.py index 18528bb..ff5c0b1 100644 --- a/patternutils/commands/targs.py +++ b/patternutils/commands/targs.py @@ -70,7 +70,7 @@ def targs( raise SystemExit if use_predefined_template: - template_engine, comand = config.load_template(command, 'targs') + command, template_engine = config.load_template(command, 'targs') try: render = template.get_render_function(command, engine=template_engine) @@ -85,7 +85,7 @@ def targs( patched_subprocess = functools.partial( subprocess.run, shell=shell, - stout=stdout, + stdout=stdout, stderr=stderr, ) patched_run_command = functools.partial( diff --git a/patternutils/config.py b/patternutils/config.py index 0daa4bc..744c12d 100644 --- a/patternutils/config.py +++ b/patternutils/config.py @@ -27,7 +27,7 @@ def load_template(template_name: str, command_name: str) -> Tuple[str, str]: if template_file.endswith('regex'): template_engine = 'regex' elif template_file.endswith('jinja2'): - template_engine = 'jinja' + template_engine = 'jinja2' else: template_engine = 'python' -- cgit v1.3.1