Skip to content

Commit 9f6935e

Browse files
committed
Add more run documentation
1 parent e468d61 commit 9f6935e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

pythonwhat/local.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def run_exercise(pec, sol_code, stu_code, sol_wd=None, stu_wd=None, **kwargs):
198198

199199

200200
# todo:
201-
# imports from local modules (solution needs to be materialised somewhere
201+
# imports from local modules (solution needs to be materialised somewhere)
202202
# converge with xbackend (pythonbackend + look at scalabackend)
203203
# move towards xwhat controlling all execution and xbackend providing the execution interface?
204204
# running with arbitrary wd + path + flags (now only wd) needed?
@@ -213,6 +213,9 @@ def run(state, relative_working_dir="", solution_dir="solution"):
213213
The ``solution_dir`` allows setting a different root of the solution context
214214
so solution side effects don't conflict with those of the student.
215215
216+
SCT functions chained after this one that execute pieces of code (custom expressions or the focused part of a file)
217+
execute in the same location as the file.
218+
216219
.. note::
217220
218221
This function does not execute the file itself, but code in memory.

0 commit comments

Comments
 (0)