From 339e131f2858a70b9da64248509ab6c1c0d1cf57 Mon Sep 17 00:00:00 2001 From: Shane Loretz Date: Fri, 1 May 2020 16:46:00 -0700 Subject: [PATCH] Platform on OSX may start with macos 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)