check python encoding in SHELL_CONFIG validation

This commit is contained in:
Nick Sweeting 2024-09-25 01:14:48 -07:00
parent e0eb3119b7
commit 0ef3a0913b
No known key found for this signature in database
6 changed files with 29 additions and 29 deletions

View file

@ -38,6 +38,7 @@ def run(cmd, *args, input=None, capture_output=True, timeout=None, check=False,
pgid = None
try:
if isinstance(cmd, (list, tuple)) and cmd[0].endswith('.py'):
PYTHON_BINARY = sys.executable
cmd = (PYTHON_BINARY, *cmd)
with Popen(cmd, *args, start_new_session=start_new_session, text=text, **kwargs) as process: