null_plugin gets imread as promised in __ini__.py of plugins

This commit is contained in:
andy
2011-10-04 11:56:17 -07:00
committed by Stefan van der Walt
parent 79cde8df47
commit 7448ba2529
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -1,3 +1,3 @@
[null]
description = Default plugin that does nothing
provides = imshow, _app_show
provides = imshow, imread, _app_show
+4 -1
View File
@@ -1,4 +1,4 @@
__all__ = ['imshow', '_app_show']
__all__ = ['imshow', 'imread', '_app_show']
import warnings
@@ -12,4 +12,7 @@ for a list of available plugins.'''
def imshow(*args, **kwargs):
warnings.warn(RuntimeWarning(message))
def imread(*args, **kwargs):
warnings.warn(RuntimeWarning(message))
_app_show = imshow