Prepends command with sudo when installing python packages requires sudo.
(command, python)
| 255 | |
| 256 | |
| 257 | def sudo_command(command, python): |
| 258 | """Prepends command with sudo when installing python packages |
| 259 | requires sudo.""" |
| 260 | if python.startswith("/usr/"): |
| 261 | command = "sudo " + command |
| 262 | return command |
| 263 | |
| 264 | |
| 265 | def get_python_path(): |
no outgoing calls