MCPcopy
hub / github.com/certbot/certbot / create_venv

Function create_venv

tools/venv.py:220–228  ·  view source on GitHub ↗

Create a Python virtual environment at venv_path. :param str venv_path: path where the venv should be created

(venv_path)

Source from the content-addressed store, hash-verified

218
219
220def create_venv(venv_path):
221 """Create a Python virtual environment at venv_path.
222
223 :param str venv_path: path where the venv should be created
224
225 """
226 python = find_python_executable()
227 command = [python, '-m', 'venv', venv_path]
228 subprocess_with_print(command)
229
230
231def main(pip_args=None):

Callers 1

mainFunction · 0.85

Calls 2

find_python_executableFunction · 0.85
subprocess_with_printFunction · 0.85

Tested by

no test coverage detected