Skip to content

Commit 019d6fc

Browse files
committed
fixed ROS version if-else inside Linter
Signed-off-by: Blanca <blancasoriaru@gmail.com>
1 parent 2161605 commit 019d6fc

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

manager/libs/applications/brain_exercise.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from src.manager.application.robotics_python_application_interface import IRoboticsPythonApplication
1+
from src.manager.manager.application.robotics_python_application_interface import IRoboticsPythonApplication
22

33

44
class BrainExercise(IRoboticsPythonApplication):

manager/manager/lint/linter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def evaluate_code(self, code, warnings=False):
3030
command = ""
3131
output = subprocess.check_output(['bash', '-c', 'echo $ROS_VERSION'])
3232
output_str = output.decode('utf-8')
33-
version = output_str[0]
33+
version = int(output_str[0])
3434
if (version == 2):
3535
command = "export PYTHONPATH=$PYTHONPATH:/$EXERCISE_FOLDER/python_template/ros2_humble; python3 RoboticsAcademy/src/manager/manager/lint/pylint_checker.py"
3636
else:

0 commit comments

Comments
 (0)