mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-14 11:18:06 +08:00
Change plugin_store to use InheritedConfig
This commit is contained in:
@@ -9,6 +9,7 @@ except ImportError:
|
||||
|
||||
import os.path
|
||||
from glob import glob
|
||||
from skimage.io.inherited_config import InheritedConfig
|
||||
|
||||
|
||||
__all__ = ['use_plugin', 'call_plugin', 'plugin_info', 'plugin_order',
|
||||
@@ -29,11 +30,11 @@ def _clear_plugins():
|
||||
|
||||
"""
|
||||
global plugin_store
|
||||
plugin_store = {'imread': [],
|
||||
'imsave': [],
|
||||
'imshow': [],
|
||||
'imread_collection': [],
|
||||
'_app_show': []}
|
||||
plugin_store = InheritedConfig({'imread': [],
|
||||
'imsave': [],
|
||||
'imshow': [],
|
||||
'imread_collection': [],
|
||||
'_app_show': []})
|
||||
_clear_plugins()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user