We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d12d92 commit 743a3deCopy full SHA for 743a3de
manager/manager/lint/linter.py
@@ -7,6 +7,9 @@ class Lint:
7
8
def evaluate_code(self, code, exercise_id, warnings=False):
9
try:
10
+ code = re.sub(r'from HAL import HAL', 'from hal import HAL', code)
11
+ code = re.sub(r'from GUI import GUI', 'from gui import GUI', code)
12
+ code = re.sub(r'from MAP import MAP', 'from map import MAP', code)
13
code = re.sub(r'\nimport cv2\n', '\nfrom cv2 import cv2\n', code)
14
15
# Avoids EOF error when iterative code is empty (which prevents other errors from showing)
0 commit comments