Skip to content

Commit

Permalink
fixed ROS version if-else inside Linter
Browse files Browse the repository at this point in the history
Signed-off-by: Blanca <blancasoriaru@gmail.com>
  • Loading branch information
Blancasr committed May 24, 2023
1 parent 2161605 commit 019d6fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manager/libs/applications/brain_exercise.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from src.manager.application.robotics_python_application_interface import IRoboticsPythonApplication
from src.manager.manager.application.robotics_python_application_interface import IRoboticsPythonApplication


class BrainExercise(IRoboticsPythonApplication):
Expand Down
2 changes: 1 addition & 1 deletion manager/manager/lint/linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def evaluate_code(self, code, warnings=False):
command = ""
output = subprocess.check_output(['bash', '-c', 'echo $ROS_VERSION'])
output_str = output.decode('utf-8')
version = output_str[0]
version = int(output_str[0])
if (version == 2):
command = "export PYTHONPATH=$PYTHONPATH:/$EXERCISE_FOLDER/python_template/ros2_humble; python3 RoboticsAcademy/src/manager/manager/lint/pylint_checker.py"
else:
Expand Down

0 comments on commit 019d6fc

Please sign in to comment.