From 5376d99952d6a080d19b2ecb36409ac5dc96d01e Mon Sep 17 00:00:00 2001 From: Ben Schroeter Date: Sun, 6 Oct 2024 23:39:19 +1100 Subject: [PATCH] Added in shlex. --- hpcpy/utilities.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hpcpy/utilities.py b/hpcpy/utilities.py index 1c394a2..749ecd7 100644 --- a/hpcpy/utilities.py +++ b/hpcpy/utilities.py @@ -5,6 +5,7 @@ import jinja2.meta as j2m from pathlib import Path from importlib import resources +import shlex def shell( @@ -33,7 +34,7 @@ def shell( subprocess.CalledProcessError """ return sp.run( - cmd, shell=shell, check=check, capture_output=capture_output, **kwargs + shlex.split(cmd), check=check, capture_output=capture_output, **kwargs )