aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/plugins/custom_subtitles/__init__.py
blob: 520b43fc7fd85cc0b0001d1383027e3f191f7ff9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from mediagoblin.tools import pluginapi
import os

PLUGIN_DIR = os.path.dirname(__file__)

def setup_plugin():
    config = pluginapi.get_config('mediagoblin.plugins.custom_subtitles')

    # Register the template path.
    pluginapi.register_template_path(os.path.join(PLUGIN_DIR, 'templates'))



hooks = {
    'setup': setup_plugin
    }