Use [sys.executable, "-m", "pip"] for the CLI pip stuff too
This commit is contained in:
parent
7a7b0e7c68
commit
fd90326fba
1 changed files with 1 additions and 6 deletions
|
|
@ -204,11 +204,6 @@ class OctoPrintDevelCommands(click.MultiCommand):
|
|||
return command
|
||||
|
||||
def plugin_uninstall(self):
|
||||
from octoprint.util.pip import PipCaller
|
||||
pip_command = PipCaller.autodetect_pip()
|
||||
if pip_command is None:
|
||||
return
|
||||
|
||||
@click.command("uninstall")
|
||||
@click.argument("name")
|
||||
def command(name):
|
||||
|
|
@ -220,7 +215,7 @@ class OctoPrintDevelCommands(click.MultiCommand):
|
|||
click.echo("This doesn't look like an OctoPrint plugin name")
|
||||
sys.exit(1)
|
||||
|
||||
call = [pip_command, "uninstall", "--yes", name]
|
||||
call = [sys.executable, "-m", "pip", "uninstall", "--yes", name]
|
||||
self.command_caller.call(call)
|
||||
|
||||
return command
|
||||
|
|
|
|||
Loading…
Reference in a new issue