Browse Source

fixed import bug

digital 8 years ago
parent
commit
52bfc9d6d5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pin/__init__.py

+ 1 - 1
pin/__init__.py

@@ -129,7 +129,7 @@ class GPIOWrapper(object):
     def load_rpi_gpio(self):
         try:
             self.gpio = False
-            self.gpio = __import__("RPi.GPIO")
+            self.gpio = __import__("RPi.GPIO",fromlist=GPIO)
         except ImportError as e:
             lgpio.debug("failed to import RPi.GPIO")
             print("134")