PluginManager.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:rudra 作者: 7h3rAm 项目源码 文件源码
def load_plugin(self, plugin, found_plugin):
    try:
      module = imp.load_module(plugin, found_plugin[0], found_plugin[1], found_plugin[2])
    except ImportError as err:
      print "[i] ImportError for '{0}'".format(found_plugin[0], err)
      print traceback.print_exc()
      return
    except TypeError as err:
      print "[i] TypeError for '{0}'".format(found_plugin[0], err)
      print traceback.format_exc()
      return
    except Exception as err:
      print "[i] Misc. Error for '{0}'".format(found_plugin[0], err)
      print traceback.format_exc()
      return

    return module
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号