Package screenlets :: Module Plugins

[hide private]
[frames] | no frames]

# Source Code for Module screenlets.Plugins

     1  import sys
     2  import os
     3  sys.path.append(sys.path[0])
     4
     5  PATH = os.path.dirname(__file__) + '/plugins'
     6
     7 -def importAPI(module):
     8          """Imports modules from plugins folder"""
     9          try:
    10                  sys.path.append(PATH)
    11                  mod = __import__(module)
    12                  return mod
    13          except: return None
    14