mirror of
https://github.com/wassname/scikit-image.git
synced 2026-06-30 09:41:23 +08:00
have preferrence list of plugins instead of just trying "null" and "pil"
This commit is contained in:
committed by
Stefan van der Walt
parent
0a71c9060e
commit
79cde8df47
@@ -8,13 +8,12 @@ from _plugins import use as use_plugin
|
||||
from _plugins import available as plugins
|
||||
from _plugins import info as plugin_info
|
||||
|
||||
# Add this plugin so that we can read images by default
|
||||
use_plugin('null')
|
||||
available_plugins = plugins()
|
||||
|
||||
try:
|
||||
use_plugin('pil')
|
||||
except ImportError:
|
||||
pass
|
||||
for preferred_plugin in ['pil', 'matplotlib', 'gtk', 'freeimage', 'qt', 'null']:
|
||||
if preferred_plugin in available_plugins:
|
||||
use_plugin(preferred_plugin)
|
||||
break
|
||||
|
||||
from sift import *
|
||||
from collection import *
|
||||
|
||||
Reference in New Issue
Block a user