From b1d656fa90cc412e0c70123cde0ff921b599078d Mon Sep 17 00:00:00 2001 From: shy Date: Mon, 21 Feb 2022 11:21:57 +0800 Subject: [PATCH] opt some --- core/code/py.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/code/py.go b/core/code/py.go index b76d11f1..f2dc70ef 100644 --- a/core/code/py.go +++ b/core/code/py.go @@ -20,10 +20,10 @@ func init() { m.Cmd(mdb.ENGINE, mdb.CREATE, PY, m.PrefixKey()) }}, mdb.ENGINE: {Hand: func(m *ice.Message, arg ...string) { - if !InstallSoftware(m.Spawn(), "python", m.Configv(INSTALL)) { + if !InstallSoftware(m.Spawn(), "python2", m.Configv(INSTALL)) { return } - m.Cmdy(cli.SYSTEM, "python", kit.Path(arg[2], arg[1])) + m.Cmdy(cli.SYSTEM, "python2", kit.Path(arg[2], arg[1])) m.Echo(ice.NL) }}, }, Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {