2019-06-06 19:58:21 +00:00
|
|
|
#!/usr/bin/env python3
|
2022-02-07 17:11:43 +00:00
|
|
|
from tutor import hooks
|
2021-11-23 08:25:09 +00:00
|
|
|
from tutor.commands.cli import main
|
2022-02-07 17:11:43 +00:00
|
|
|
from tutor.plugins.v0 import OfficialPlugin
|
|
|
|
|
|
|
|
|
|
|
|
@hooks.Actions.CORE_READY.add()
|
|
|
|
def _discover_official_plugins() -> None:
|
|
|
|
# Manually discover plugins: that's because entrypoint plugins are not properly
|
|
|
|
# detected within the binary bundle.
|
|
|
|
with hooks.Contexts.PLUGINS.enter():
|
|
|
|
OfficialPlugin.discover_all()
|
2019-06-06 19:58:21 +00:00
|
|
|
|
2019-08-20 15:01:34 +00:00
|
|
|
|
2021-11-23 08:25:09 +00:00
|
|
|
if __name__ == "__main__":
|
2022-02-07 17:11:43 +00:00
|
|
|
# Call the regular main function, which will not detect any entrypoint plugin
|
2021-11-23 08:25:09 +00:00
|
|
|
main()
|