Shutdown PIO Home server before updating tool-pioplus; Update tool-pioplus to 1.4.11

This commit is contained in:
Ivan Kravets
2018-10-25 13:44:41 +03:00
parent 7cc4e8ce15
commit 3507290a20
3 changed files with 17 additions and 14 deletions

View File

@ -20,7 +20,7 @@ import click
import requests
from platformio import VERSION, __version__, exception, util
from platformio.commands.home import shutdown_servers
from platformio.managers.core import shutdown_piohome_servers
@click.command(
@ -36,7 +36,7 @@ def cli(dev):
click.secho("Please wait while upgrading PlatformIO ...", fg="yellow")
# kill all PIO Home servers, they block `pioplus` binary
shutdown_servers()
shutdown_piohome_servers()
to_develop = dev or not all(c.isdigit() for c in __version__ if c != ".")
cmds = (["pip", "install", "--upgrade",