Files
edx-platform/openedx/core/djangoapps/theming/startup.py
2015-12-03 17:18:55 -05:00

15 lines
350 B
Python

"""
Startup code for Comprehensive Theming
"""
from path import Path as path
from django.conf import settings
from .core import enable_comprehensive_theme
def run():
"""Enable comprehensive theming, if we should."""
if settings.COMPREHENSIVE_THEME_DIR:
enable_comprehensive_theme(theme_dir=path(settings.COMPREHENSIVE_THEME_DIR))