mirror of
https://github.com/SHC-ASTRA/rover-ros2.git
synced 2026-02-11 09:20:40 +00:00
nuke __pycache__ in future
This commit is contained in:
@@ -5,6 +5,12 @@ from launch.actions import DeclareLaunchArgument, OpaqueFunction
|
|||||||
from launch.substitutions import LaunchConfiguration
|
from launch.substitutions import LaunchConfiguration
|
||||||
from launch_ros.actions import Node
|
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):
|
def launch_setup(context, *args, **kwargs):
|
||||||
# Retrieve the resolved value of the launch argument 'mode'
|
# Retrieve the resolved value of the launch argument 'mode'
|
||||||
mode = LaunchConfiguration('mode').perform(context)
|
mode = LaunchConfiguration('mode').perform(context)
|
||||||
|
|||||||
Reference in New Issue
Block a user