From d767191230e9baef59f2b9a7604c414c2d5f2c70 Mon Sep 17 00:00:00 2001 From: Yuri Witte Date: Sun, 12 Sep 2021 17:36:27 -0300 Subject: [PATCH] Fix simpleservo binary check on macos --- python/servo/command_base.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/python/servo/command_base.py b/python/servo/command_base.py index 7b4fd6ab544..2ebbdbb9851 100644 --- a/python/servo/command_base.py +++ b/python/servo/command_base.py @@ -373,7 +373,12 @@ class CommandBase(object): base_path = path.join(base_path, target) if simpleservo: - binary_name = "simpleservo.dll" if sys.platform == "win32" else "libsimpleservo.so" + if sys.platform == "win32": + binary_name = "simpleservo.dll" + elif sys.platform == "darwin": + binary_name = "libsimpleservo.dylib" + else: + binary_name = "libsimpleservo.so" release_path = path.join(base_path, "release", binary_name) dev_path = path.join(base_path, "debug", binary_name)