initialise mythril plugin loader at start

pull/1342/head
Joran Honig 5 years ago
parent 7f03422026
commit 27aff199e9
  1. 8
      mythril/__init__.py
  2. 1
      mythril/plugin/loader.py

@ -1,6 +1,14 @@
# We use RsT document formatting in docstring. For example :param to mark parameters.
# See PEP 287
__docformat__ = "restructuredtext"
import logging
# Accept mythril.VERSION to get mythril's current version number
from .__version__ import __version__ as VERSION # NOQA
from mythril.plugin.loader import MythrilPluginLoader
log = logging.getLogger(__name__)
# Initialise core Mythril Components
log.info("Initializing core Mythril components")
_ = MythrilPluginLoader()

@ -19,6 +19,7 @@ class MythrilPluginLoader(object, metaclass=Singleton):
"""
def __init__(self):
log.info("Initializing mythril plugin loader")
self.loaded_plugins = []
def load(self, plugin: MythrilPlugin):

Loading…
Cancel
Save