From b09752c1884fc474055fe72dd201dd26aaf0fb0e Mon Sep 17 00:00:00 2001 From: R1kaB3rN <100738684+R1kaB3rN@users.noreply.github.com> Date: Fri, 23 Feb 2024 18:28:08 -0800 Subject: [PATCH] ulwgl_run: prefer selectively importing subprocess functionality --- ulwgl_run.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ulwgl_run.py b/ulwgl_run.py index dc34a76..9355402 100755 --- a/ulwgl_run.py +++ b/ulwgl_run.py @@ -8,7 +8,7 @@ from pathlib import Path from typing import Dict, Any, List, Set, Union, Tuple from ulwgl_plugins import enable_steam_game_drive, set_env_toml from re import match -import subprocess +from subprocess import run from ulwgl_dl_util import get_ulwgl_proton from ulwgl_consts import Level from ulwgl_util import msg @@ -300,7 +300,7 @@ def main() -> int: # noqa: D103 build_command(env, command, opts) log.debug(msg(command, Level.DEBUG)) - return subprocess.run(command).returncode + return run(command).returncode if __name__ == "__main__":