(venv_path)
| 138 | |
| 139 | |
| 140 | def 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 | |
| 153 | def prepare_venv_path(venv_name): |
no test coverage detected