MCPcopy Create free account
hub / github.com/Drakkar-Software/OctoBot / _run_pip_command

Method _run_pip_command

octobot/updater/python_updater.py:89–96  ·  view source on GitHub ↗

Use a shell-escaped version of sys.executable with pip module :param args: pip args :return: the command result

(self, *args)

Source from the content-addressed store, hash-verified

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 """

Callers 1

_run_pip_installMethod · 0.95

Calls 1

listFunction · 0.50

Tested by

no test coverage detected