Describe plugins using .ini files, so that we don't need to import them to know their capabilities.

This commit is contained in:
Stefan van der Walt
2009-11-03 00:09:31 +02:00
parent 0f2474a9b9
commit 447397dfa3
13 changed files with 176 additions and 165 deletions
@@ -1,8 +1,4 @@
import plugin
try:
import matplotlib.pyplot as plt
except ImportError, e:
print e
else:
plugin.register('matplotlib', show=plt.imshow, save=plt.imsave)
from matplotlib.pyplot import imshow, imsave
except ImportError:
print "Could not import Matplotlib."