Starting Customize Interface
This commit is contained in:
parent
913e281980
commit
682b891d91
16
mediagoblin/plugins/custom_subtitles/__init__.py
Normal file
16
mediagoblin/plugins/custom_subtitles/__init__.py
Normal file
@ -0,0 +1,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
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user