From de70a72fd0e52d3f017a9d3ad6bb371d39d336da Mon Sep 17 00:00:00 2001 From: Hayato Mizushima Date: Fri, 15 Nov 2024 13:40:49 +0900 Subject: [PATCH] fix: resolve symlink Signed-off-by: Hayato Mizushima --- .../launch/driving_log_replayer_v2.launch.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/driving_log_replayer_v2/launch/driving_log_replayer_v2.launch.py b/driving_log_replayer_v2/launch/driving_log_replayer_v2.launch.py index 3e8d0911..47e06b8a 100644 --- a/driving_log_replayer_v2/launch/driving_log_replayer_v2.launch.py +++ b/driving_log_replayer_v2/launch/driving_log_replayer_v2.launch.py @@ -192,6 +192,9 @@ def extract_remap_topics(profile_name: str) -> list[str]: "remap", f"{profile_name}.yaml" ) + # Make it work with symlink install as well. + if profile_file.is_symlink(): + profile_file = profile_file.resolve() if not profile_file.exists(): return [] with profile_file.open("r") as f: