diff options
| author | Dennis Fink | 2018-04-08 02:21:18 +0200 |
|---|---|---|
| committer | Dennis Fink | 2018-04-08 02:21:18 +0200 |
| commit | 7640bf135740da724472b8021944967700733bed (patch) | |
| tree | 102defb140c0a3c0c10abeb4cc54a587651392e8 | |
| parent | 104af9d1cd7fc3d8ef41a373e757516d0da88409 (diff) | |
| download | patternutils-7640bf135740da724472b8021944967700733bed.tar.gz patternutils-7640bf135740da724472b8021944967700733bed.zip | |
Fix
| -rw-r--r-- | patternutils/commands/targs.py | 4 | ||||
| -rw-r--r-- | 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' |
