Pioreactor / pioreactor

Hardware and software for accessible, extensible, and scalable bioreactors. Built on Raspberry Pi.
https://pioreactor.com
MIT License
94 stars 9 forks source link

Using plugins in scripts and REPL #389

Open CamDavidsonPilon opened 1 year ago

CamDavidsonPilon commented 1 year ago

https://forum.pioreactor.com/t/multiple-instances-of-repeatedtimer/77/6?u=camdavidsonpilon

CamDavidsonPilon commented 1 year ago

Option 1

Might be nice to be able to do something like:

from pioreactor.plugins.my_plugin import *  # and my_plugin.py exists in ~/.pioreactor/plugins

This kinda breaks namespaces, though, and isn't obvious to users how this works.