Skip to content

Commit

Permalink
Added in shlex.
Browse files Browse the repository at this point in the history
  • Loading branch information
bschroeter committed Oct 6, 2024
1 parent aa62e5f commit 5376d99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hpcpy/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import jinja2.meta as j2m
from pathlib import Path
from importlib import resources
import shlex


def shell(
Expand Down Expand Up @@ -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
)


Expand Down

0 comments on commit 5376d99

Please sign in to comment.