From 003fa1571589950a63145179d73a36e8d1c62bc2 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Mon, 1 Feb 2021 14:51:42 -0300 Subject: [PATCH] Support for mcpyrate macros deactivation. --- kibot/kiplot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kibot/kiplot.py b/kibot/kiplot.py index 5091f233..5fb629ff 100644 --- a/kibot/kiplot.py +++ b/kibot/kiplot.py @@ -77,9 +77,10 @@ def load_actions(): dir = os.path.join(home, '.config', 'kibot', 'plugins') if os.path.isdir(dir): _load_actions(dir) - if 'de_activate' in activate.__dict__: + # de_activate in old mcpy + if 'deactivate' in activate.__dict__: logger.debug('Deactivating macros') - activate.de_activate() + activate.deactivate() def check_version(command, version):