You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, pythonwhat uses subprocesses for evaluated student / solution. For cases where a main script imports a custom module that is part of an exercise, it would be useful to set the module as the "environment". For example, in the code below we may want to check config, even if __main__.py is the script executed by the process.
__main__.py:
from app import app
app.py:
from somelibrary import load_config, Service
config = load_config(...)
app = Service(config)
Currently, pythonwhat uses subprocesses for evaluated student / solution. For cases where a main script imports a custom module that is part of an exercise, it would be useful to set the module as the "environment". For example, in the code below we may want to check
config
, even if__main__.py
is the script executed by the process.__main__.py
:app.py
:SCT sketch
The text was updated successfully, but these errors were encountered: