Files
edx-platform/common/lib/xmodule/xmodule/edxnotes_utils.py
2020-05-01 19:42:15 +05:00

18 lines
304 B
Python

"""
Utilities related to edXNotes.
"""
import sys
def edxnotes(cls):
"""
Conditional decorator that loads edxnotes only when they exist.
"""
if "edxnotes" in sys.modules:
from edxnotes.decorators import edxnotes as notes
return notes(cls)
else:
return cls