From 036a26d79585753cea39b199e8a9d018a7888530 Mon Sep 17 00:00:00 2001 From: Shane Loretz Date: Mon, 4 May 2020 20:10:21 -0400 Subject: [PATCH] Platform on OSX may start with macos (#444) Platform name using python 3.8: macOS-10.14.6-x86_64-i386-64bit Signed-off-by: Shane Loretz Signed-off-by: Shane Loretz --- ros2_batch_job/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ros2_batch_job/__main__.py b/ros2_batch_job/__main__.py index e91e02106..d592df5b2 100644 --- a/ros2_batch_job/__main__.py +++ b/ros2_batch_job/__main__.py @@ -459,7 +459,7 @@ def run(args, build_function, blacklisted_package_names=None): args.os = 'linux' from .linux_batch import LinuxBatchJob job = LinuxBatchJob(args) - elif args.os == 'osx' or platform_name.startswith('darwin'): + elif args.os == 'osx' or platform_name.startswith('darwin') or platform_name.startswith('macos'): args.os = 'osx' from .osx_batch import OSXBatchJob job = OSXBatchJob(args)