MCPcopy
hub / github.com/certbot/certbot / get_venv_python_path

Function get_venv_python_path

tools/venv.py:140–150  ·  view source on GitHub ↗
(venv_path)

Source from the content-addressed store, hash-verified

138
139
140def get_venv_python_path(venv_path):
141 python_linux = os.path.join(venv_path, 'bin/python')
142 if os.path.isfile(python_linux):
143 return os.path.abspath(python_linux)
144 python_windows = os.path.join(venv_path, 'Scripts\\python.exe')
145 if os.path.isfile(python_windows):
146 return os.path.abspath(python_windows)
147
148 raise ValueError((
149 'Error, could not find python executable in venv path {0}: is it a valid venv ?'
150 .format(venv_path)))
151
152
153def prepare_venv_path(venv_name):

Callers 1

install_packagesFunction · 0.85

Calls 1

formatMethod · 0.80

Tested by

no test coverage detected