Electrostatics / APBS_Sphinx

APBS Rewrite
http://www.poissonboltzmann.org
1 stars 3 forks source link

Plugin loading should be smarter #26

Closed keith923 closed 8 years ago

keith923 commented 8 years ago

It's a good idea that plugins are automatically loaded, but if a directory in the "plugins" dir is not a plugin, Sphinx pukes.

keith923 commented 8 years ago

I think that there are two things here that would make plugin loading better:

  1. check that there is actually a "plugin.py" file inside the directory in the "plugins" dir before attempting to dynamically import the module
  2. see if there is some clever way to disentangle the name of the name of the plugin module (the directory name) from the name of the plugin class
sobolevnrm commented 8 years ago

Yay