Skip to content

validate import checks in python course environment setup - #3538

Draft
Dhairya Patel (HABER7789) wants to merge 2 commits into
amcasey/PythonLearningfrom
HABER7789/python-learning-review
Draft

validate import checks in python course environment setup#3538
Dhairya Patel (HABER7789) wants to merge 2 commits into
amcasey/PythonLearningfrom
HABER7789/python-learning-review

Conversation

@HABER7789

Copy link
Copy Markdown
Contributor

Module names from course.json flowed into a python -c command line without validation, so a drop-in course could run random Python when someone ran the environment check. They now have to be dotted identifiers, and anything else is reported as a failed check rather than silently dropped.

Also fixes the multiple-environments warning, which joined the environment objects directly and so logged [object Object] instead of their names.

Module names from course.json flowed into a `python -c` command line without
validation, so a drop-in course could run random Python when someone ran
the environment check. They now have to be dotted identifiers, and anything
else is reported as a failed check rather than silently dropped.

Also fixes the multiple-environments warning, which joined the environment
objects directly and so logged [object Object] instead of their names.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant