Fix import errors with unicode filenames

This commit is contained in:
Julian Arni
2013-08-29 16:12:56 -04:00
parent 70cc500851
commit 1813b22ab0
2 changed files with 2 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ def import_static_content(modules, course_loc, course_data_path, static_content_
try:
content_path = os.path.join(dirname, filename)
if verbose:
log.debug('importing static content {0}...'.format(content_path))
log.debug('importing static content {0}...'.format(content_path.encode("utf-8")))
fullname_with_subpath = content_path.replace(static_dir, '') # strip away leading path from the name
if fullname_with_subpath.startswith('/'):