Commit fe2eeccb by Justin Riley

HACK: fix courseware import error for static assets

parent 9adadb01
import sys
import json import json
import logging import logging
import requests import requests
...@@ -11,7 +12,13 @@ from xmodule.seq_module import SequenceDescriptor ...@@ -11,7 +12,13 @@ from xmodule.seq_module import SequenceDescriptor
from xblock.fields import Scope, String, Boolean from xblock.fields import Scope, String, Boolean
from xblock.fragment import Fragment from xblock.fragment import Fragment
from courseware import module_tree_reset try:
from courseware import module_tree_reset
except ImportError:
# TODO: this is an ugly hack to get around courseware import error during
# static asset generation. fix this later some how
if 'xmodule_assets' not in ' '.join(sys.argv):
raise
log = logging.getLogger('mitx.' + __name__) log = logging.getLogger('mitx.' + __name__)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment