Commit 8caadfeb authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

MNT: loadPluginFile runs path through findPluginFile

parent 8a54b4aa
......@@ -61,6 +61,8 @@ import logging
import importlib
import collections
import funpack.util as util
log = logging.getLogger(__name__)
......@@ -77,6 +79,10 @@ PLUGIN_TYPES = ['loader',
class PluginRegistry:
"""The ``PluginRegistry`` keeps track of, and provides access to all
registered plugins.
A singleton ``PluginRegistry`` is created at first import of this module,
and module-level aliases for all of its methods are created - see below,
after the class definition.
def __init__(self):
......@@ -135,7 +141,7 @@ class PluginRegistry:
plugin functions.
filename = op.abspath(filename)
filename = util.findPluginFile(filename)
name = re.sub('[^a-zA-Z]', '_', filename)
log.debug('Loading custom plugin: %s [%s]', name, filename)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment