6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-11-10 23:30:59 +00:00
tutor/bin/main.py

18 lines
449 B
Python
Raw Normal View History

#!/usr/bin/env python3
import importlib
from tutor.plugins import Plugins
# Manually install plugins (this is for creating the bundle)
2019-12-25 00:09:53 +00:00
for plugin in ["discovery", "ecommerce", "figures", "lts", "minio", "notes", "xqueue"]:
try:
module = importlib.import_module("tutor{}.plugin".format(plugin))
except ImportError:
pass
else:
Plugins.EXTRA_INSTALLED[plugin] = module
2019-12-25 00:09:53 +00:00
from tutor.commands.cli import main
2019-12-25 00:15:50 +00:00
main()