From 1bc4c47df7842aeff1660ad55a2ce1d0a75444df Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Fri, 8 Jun 2018 17:10:44 +0200 Subject: [PATCH] Imported ZeroBorg library with scope constructor as global import fails for some reason --- platypush/plugins/gpio/zeroborg/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/platypush/plugins/gpio/zeroborg/__init__.py b/platypush/plugins/gpio/zeroborg/__init__.py index 2b24effd3..b1e25031c 100644 --- a/platypush/plugins/gpio/zeroborg/__init__.py +++ b/platypush/plugins/gpio/zeroborg/__init__.py @@ -2,8 +2,6 @@ import enum import threading import time -import platypush.plugins.gpio.zeroborg.lib as ZeroBorg - from platypush.message.response import Response from platypush.plugins import Plugin from platypush.context import get_plugin @@ -26,6 +24,7 @@ class GpioZeroborgPlugin(Plugin): def __init__(self, directions = {}, *args, **kwargs): + import platypush.plugins.gpio.zeroborg.lib as ZeroBorg super().__init__(*args, **kwargs) self.directions = directions