FRC1076 / RobotKitLib

Robotpy-WPILIB equivalent for raspberry pi robot kit
1 stars 1 forks source link

A few more suggestions for the new deploy #73

Closed amylieb closed 3 years ago

amylieb commented 3 years ago

These are things I've done to make the Revbot stuff work with the "Eli rework" version of deploy. I don't think they're 100% necessary, but I figured I'd document them here in case you're interested. I haven't committed this to the FRCRevolution repo yet, but I can share my code if you like - they're just small tweaks.

  1. In RobotRunner/run.py, I added a command that prepends "{current_dir}/RobotCode" to pythonpath so I didn't have to change all my absolute imports to relative ones in all the RobotCode submodules. It feels hacky, but the rest of my code is also hacky so I decided it was fine :) Dealing with these sorts of pythonpath issues is not my area of expertise - there may be a better way.
  2. In RobotRunner/run.py I added a statement that prints out the traceback as well as the error when I hit an exception.