6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-11-15 17:47:13 +00:00
tutor/bin/main.py
Régis Behmo be1ff08917 Add all plugins (with data) to binary bundle
All existing plugins are added to the binary bundle, in their latest
version, so that users don't need to pip install tutor.

Also, the tutor MANIFEST.in file was removed to simplify the management
of package data.

Close #242.
2019-08-20 17:03:46 +02:00

17 lines
441 B
Python
Executable File

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