MCPcopy Create free account
hub / github.com/cztomczak/cefpython / sudo_command

Function sudo_command

tools/common.py:257–262  ·  view source on GitHub ↗

Prepends command with sudo when installing python packages requires sudo.

(command, python)

Source from the content-addressed store, hash-verified

255
256
257def 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
265def get_python_path():

Callers 5

test_wheel_packagesFunction · 0.85
install_and_runFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_wheel_packagesFunction · 0.68