7
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-05-30 21:00:49 +00:00
tutor/bin/main.py
Régis Behmo 159e24a95d Refactor plugin internals
This is for supporting json-based plugins. The great thing about this
change is that it allows us to easily print plugin version numbers in
`plugins list`.
2020-01-14 15:41:42 +01:00

22 lines
410 B
Python
Executable File

#!/usr/bin/env python3
from tutor.plugins import OfficialPlugin
# Manually install plugins (this is for creating the bundle)
for plugin_name in [
"discovery",
"ecommerce",
"figures",
"lts",
"minio",
"notes",
"xqueue",
]:
try:
OfficialPlugin.INSTALLED.append(OfficialPlugin(plugin_name))
except ImportError:
pass
from tutor.commands.cli import main
main()