diff --git a/launch/launch/substitutions/command.py b/launch/launch/substitutions/command.py index 0aed7a9d6..cd728877b 100644 --- a/launch/launch/substitutions/command.py +++ b/launch/launch/substitutions/command.py @@ -109,6 +109,7 @@ def perform(self, context: LaunchContext) -> Text: try: result = subprocess.run( command, + env=context.environment, stdout=subprocess.PIPE, stderr=stderr, universal_newlines=True)