Use a shell-escaped version of sys.executable with pip module :param args: pip args :return: the command result
(self, *args)
| 87 | return False |
| 88 | |
| 89 | def _run_pip_command(self, *args): |
| 90 | """ |
| 91 | Use a shell-escaped version of sys.executable with pip module |
| 92 | :param args: pip args |
| 93 | :return: the command result |
| 94 | """ |
| 95 | return subprocess.check_output([shlex_quote(sys.executable), "-m", "pip"] + list(*args), |
| 96 | stderr=subprocess.DEVNULL).decode().strip() |
| 97 | |
| 98 | def _run_git_command(self, *args): |
| 99 | """ |
no test coverage detected