Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
7a2eb5bb
Commit
7a2eb5bb
authored
Jul 19, 2012
by
Arjun Singh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing a bug in which problem tests with no filestore fail.
parent
77dfc2ad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
+8
-1
common/lib/capa/capa/capa_problem.py
+8
-1
No files found.
common/lib/capa/capa/capa_problem.py
View file @
7a2eb5bb
...
@@ -312,6 +312,13 @@ class LoncapaProblem(object):
...
@@ -312,6 +312,13 @@ class LoncapaProblem(object):
at some point.
at some point.
'''
'''
# TODO: perhaps adding to the pythonpath when there is no filestore
# should be disallowed.
if
self
.
system
.
filestore
:
root_path
=
self
.
system
.
filestore
.
root_path
else
:
root_path
=
''
DEFAULT_PATH
=
[
'code'
]
DEFAULT_PATH
=
[
'code'
]
# Separate paths by :, like the system path.
# Separate paths by :, like the system path.
...
@@ -326,7 +333,7 @@ class LoncapaProblem(object):
...
@@ -326,7 +333,7 @@ class LoncapaProblem(object):
continue
continue
# path is an absolute path or a path relative to the data dir
# path is an absolute path or a path relative to the data dir
dir
=
os
.
path
.
join
(
self
.
system
.
filestore
.
root_path
,
dir
)
dir
=
os
.
path
.
join
(
root_path
,
dir
)
abs_dir
=
os
.
path
.
normpath
(
dir
)
abs_dir
=
os
.
path
.
normpath
(
dir
)
log
.
debug
(
"appending to path:
%
s"
%
abs_dir
)
log
.
debug
(
"appending to path:
%
s"
%
abs_dir
)
path
.
append
(
abs_dir
)
path
.
append
(
abs_dir
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment