nasa / OnAIR

The On-board Artificial Intelligence Research (OnAIR) Platform is a framework that enables AI algorithms written in Python to interact with NASA's cFS. It is intended to explore research concepts in autonomous operations in a simulated environment.
58 stars 14 forks source link

Simplify plugin importing while allowing for multiple usage of same module #114

Closed asgibson closed 6 months ago

asgibson commented 7 months ago

Currently the plugin dicts in the .ini config file require the __init__.py to be included, but since they all require it, it seems unnecessary to have it included in them all. Simplify the pathing, but not requiring the init file in the path. This will also allow for detection of the module name as it is equal to the last directory. Following from that, we will no longer be constrained to provide the name of the module as the key in the dict and will be free to give the plugins names that do not necessarily match the module name.