From a7546ece49e63fa4bf18653d01024fa62f3f3a2c Mon Sep 17 00:00:00 2001 From: Tristan McGinnis Date: Sat, 22 Feb 2025 01:25:58 -0600 Subject: [PATCH] nuke __pycache__ in future --- rover_launch.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rover_launch.py b/rover_launch.py index e4ec2ff..e34a34d 100644 --- a/rover_launch.py +++ b/rover_launch.py @@ -5,6 +5,12 @@ from launch.actions import DeclareLaunchArgument, OpaqueFunction from launch.substitutions import LaunchConfiguration from launch_ros.actions import Node + + +#Prevent making __pycache__ directories +from sys import dont_write_bytecode +dont_write_bytecode = True + def launch_setup(context, *args, **kwargs): # Retrieve the resolved value of the launch argument 'mode' mode = LaunchConfiguration('mode').perform(context)