LBHB / NEMS0

THIS VERSION OF NEMS IS NO LONGER SUPPORTED. PLEASE USE THE NEW NEMS REPOSITORY OR INSTALL NEMS_DB TO GET NEMS0 SUPPORT.
GNU General Public License v3.0
8 stars 4 forks source link

Cleanup plugin loader to allow module names #149

Closed bburan closed 5 years ago

bburan commented 5 years ago

Previous iteration only allowed for importing keywords from files and/or directories. Cleaned up the file/directory import mechanism using features specific to Python 3.6+ as it's best not to muck around with sys.path too much.

Also, added support for specifying plugins as module names (e.g., nems_db.nems_lbhb.plugin) instead of a path to the file. This makes the code much more portable.