try to load only plugins that have both imread and imshow

This commit is contained in:
Andreas Mueller
2011-10-16 19:40:28 +02:00
parent d0041a8c74
commit 6ac1927518
+1 -2
View File
@@ -9,8 +9,7 @@ from _plugins import available as plugins
from _plugins import info as plugin_info
available_plugins = plugins()
for preferred_plugin in \
['pil', 'matplotlib', 'gtk', 'freeimage', 'qt', 'null']:
for preferred_plugin in ['pil', 'matplotlib', 'null']:
if preferred_plugin in available_plugins:
try:
use_plugin(preferred_plugin)